Python3.6 environment construction (using Win environment Anaconda)

This goal

Anaconda installation

Anaconda Download Page

anaconda01.PNG

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 !! ** anaconda02.PNG

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.

Python command confirmation

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 path.PNG

Add if not

Hello World in Python!

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

Build a virtual environment with Conda

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

Python3.6 environment construction (using Win environment Anaconda)
Python environment construction @ Win7
Python + Anaconda + Pycharm environment construction
Anaconda3 python environment construction procedure
Python environment construction
Python environment construction (pyenv, anaconda, tensorflow)
python environment construction
Python --Environment construction
Python environment construction
python environment construction
Python (anaconda) development environment construction procedure (SpringToolsSuites) _2020.4
python windows environment construction
homebrew python environment construction
Python development environment construction
python2.7 development environment construction
Build Python3.5 + matplotlib environment on Ubuntu 12 using Anaconda
Python environment construction (Anaconda + VSCode) @ Windows10 [January 2020 version]
[Environment construction] Dependency analysis using CaboCha in Python 2.7
Anaconda environment construction on CentOS7
Introduced Tensorflow (Win / Anaconda environment)
Python environment construction (Windows10 + Emacs)
CI environment construction ~ Python edition ~
Python environment construction For Mac
Anaconda3 × Pycharm environment construction memo
Python3 environment construction (for beginners)
Python environment construction and TensorFlow
Python environment construction under Windows7 environment
[MEMO] [Development environment construction] Python
Environment construction of python2 & 3 (OSX)
How to install python using anaconda
Environment construction of python and opencv
Python environment construction memo on Windows 10
Get started with Python! ~ ① Environment construction ~
Python + Unity Reinforcement learning environment construction
[Python] Anaconda environment construction (installation, startup, virtual environment, package management) Mac environment
Install scrapy in python anaconda environment
I checked Mac Python environment construction
Python environment construction memo on Mac
[Python3] Development environment construction << Windows edition >>
install tensorflow in anaconda + python3.5 environment
Python development environment construction on macOS
Python environment construction (pyenv + poetry + pipx)
Python environment construction procedure memo using Docker on Windows10 Home
Environment construction of python3.8 on mac
Python3 environment construction with pyenv-virtualenv (CentOS 7.3)
Python3 TensorFlow for Mac environment construction
Using Chainer with CentOS7 [Environment construction]
Emacs Python development environment construction memo
pytorch @ python3.8 environment construction with pipenv
[docker] python3.5 + numpy + matplotlib environment construction
OpenCV3 & Python3 environment construction on Ubuntu
Web application created with Python + Flask (using VScode) # 1-Virtual environment construction-
[Ubuntu 18.04] Python environment construction with pyenv + pipenv
Change Python 64bit environment to 32bit environment with Anaconda
Using venv in Windows + Docker environment [Python]
Vue.js + Flask environment construction memorandum ~ with Anaconda3 ~
WEB application development using django-Development environment construction-
[Python] Create a virtual environment with Anaconda
[Python] Road to snake charmer (1) Environment construction
I created an Anaconda environment using Docker!
[Python] Create a Batch environment using AWS-CDK