Click the part surrounded by red Since it will move to the version selection page ** Anaconda 4.3.1 Python3.6 64bit ** Select installer (Personally, I'm more accustomed to 2.X, but it seems that support in the Python community will be until 2020, so I chose 3.X) ** Please note that Python 2.X and 3.X are not compatible !! **
Since it is about 400Mb, it is better to put it in the file server when doing it with a large number of people.
For the time being, start the installer (Anaconda 3-4.1-Windows-x86_64.exe) and install it directly under the C drive.
Start Command Prompt-> Execute "python" command
C:\>python
Python 3.6.0 |Anaconda 4.3.1 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
Exit the interpreter with exit ()
If the Python interpreter does not start at this time, check the environment variables
Add if not
Hello World in interactive mode for the time being
C:\>python
Python 3.6.0 |Anaconda 4.3.1 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> word = 'Hello Python World!'
>>> print(word)
Hello Python World!
>>> exit()
Then start from the script file
#coding:UTF-8
#Encoding declaration when using Japanese
word = 'Hello world'
print word
Move to the work directory at the command prompt and start with the python command
C:\>cd work
C:\work>python hello.py
Hello world
Prepare a virtual environment for Tensorflow. Conda is a package management application (with pip, etc.)
C:\work>conda info -e
# conda environments:
#
root * C:\Anaconda
Create an environment for Tensorflow with the create command
conda create -n py27 python=2.7 anaconda
# conda create -n Virtual environment name python=python Ver anaconda
.
.
.
Proceed ([y]|n)?y
You will be asked Proceed on the way, so enter y and enter The package will be installed for a while, so wait
Check again when finished
C:\>conda info -e
# conda environments:
#
py27 C:\Anaconda\envs\py27
root * C:\Anaconda
Activate py27
C:\>activate py27
(py27) C:\>conda info -e
# conda environments:
#
py27 * C:\Anaconda\envs\py27
root C:\Anaconda
Inactive is "deactivate"
So far for the time being By next time
To find out
Recommended Posts