[PYTHON] Notes on installing Anaconda 3 on Windows

Overview

I personally summarized the installation of Anaconda 3 on Windows 10.

table of contents

  1. What is Anaconda?
  2. Construction environment and libraries to be installed this time
  3. Installation and version confirmation
  4. Conda and pip updates
  5. Installation of various packages

1. What is Anaconda?

Python has many useful libraries that make it easy for you to do advanced numerical calculations, data analysis, machine learning, and more. However, many of these libraries are not included as standard with Python, and you have to install them yourself to prepare the environment.

It's easy for people who are used to Python or who are already using it, but for those who are new to Python, building an environment is surprisingly troublesome. On the other hand, Anaconda is a Python package that includes Python itself and libraries that are often used in Python. Just installing Anaconda will install Python itself and the library, so it will be much easier to build the environment.

On the other hand, for engineers who are accustomed to python, using Anaconda has the disadvantage of not being able to build their own Python environment. For beginners, the benefits of using Anaconda may be greater.

2. Construction environment and libraries to be installed this time

1. Construction environment

・ Windows10 Home (64bit) ・ Anaconda3 2019.10 (Python 3.7)

2. Library

3. Installation and version confirmation

1. Install Anaconda

Go to the Anaconda3 Download Site.

The person who installs this time is Python3, so click [Download] in [Python 3.7 Version]. ** Python 2 series will end support on January 1, 2020 ** image.png

Run when downloaded image.png

When the setup wizard starts, click [Next>] setup1.png

Look at the license terms and click [I Agree]. setup2.png

[Just Me (recommended)] if you want to install only for individual users [All Users (requires admin privileges)] to install for all users

This time, I selected [All Users (requires admin privileges)]. image.png

If you are not particular about it, just click [Next>]. If you want to change it, click [Browse] and specify the folder you want to install. image.png

If you check the first [Add Anaconda to the system PATH environment variable], the directory containing the Python executable file installed by Anaconda will be added to the PATH environment variable. This makes it possible to execute Anaconda's Python as it is with cmd etc.

For the second [Register Anaconda as the system Python 3.7], if you check it, other programs that use Python will use Python installed by Anaconda.

Neither setting is a problem if you only use Python installed with Anaconda. ** Please note that if you have already installed Python in another way, or if you try to install Python separately later, you may have trouble. ** **

This time I checked only the second one. Click [Install] to start the installation. setup5.png

Wait patiently, and if you can install it, you're done.

2. Check the version

Press the Start Menu at the bottom left to launch Anacondqa Powershell Prompt. Anaconda3 (64-bit) -> Anaconda Powershell Prompt shoutcut.png

Checking the Python version

Python version


# --V is uppercase.
python --V
result

(base) PS C:\Users\USERNAME> python --V Python 3.7.4

If you can confirm the version, it's OK.

Checking the operation of conda

conda


conda info
result

If no error message appears, it's OK. 名称未設定 1.jpg

numpy version check

conda


python -c "import numpy; print( numpy.__version__ )"
result

(base) PS C:\Users\USERNAME> python -c "import numpy; print( numpy.version )" 1.16.5

If the version is displayed, it's OK.

4. Conda and pip updates

1. update of conda

Press the Start Menu at the bottom left, right-click Anacondqa Powershell Prompt-> Other-> Run as administrator

In the newly opened Anacondqa Powershell Prompt, update the Anaconda3 conda package and delete the old conda package file.

[conda-forge]If there is, delete it


#The following command will be sent to the conda channel[conda-forge]It is a command to delete if is included.
#[conda-forge]Should not be included, but it is running just in case.
conda config --remove channels conda-forge

Package update


conda upgrade --all
#When I get a question asking y or n, I want to continue[y]

Remove old packages


conda clean --packages
#When I get a question asking y or n, I want to continue[y]

2. pip update

pip update


pip install --upgrade pip

result

(base) PS C:\Windows\system32> pip install --upgrade pip Requirement already up-to-date: pip in c:\programdata\anaconda3\lib\site-packages (19.3.1)

5. Installation of various packages

Major package installation

conda install -y -c spyder-ide spyder
conda install -y numpy scipy h5py scikit-learn scikit-image matplotlib seaborn pandas pillow
conda install -y jupyter pytest docopt pyyaml cython

Library to be installed this time

pip install opencv-python
pip install opencv-contrib-python
pip install chainer
pip install chainerrl
pip install tensorflow==2.0.0
pip install keras
pip install natsort

Recommended Posts

Notes on installing Anaconda 3 on Windows
Notes on installing PycURL
Install Anaconda on Windows 10
Notes on installing Python3 and using pip on Windows7
Notes on installing dlib on mac
Install cvxpy on windows, Anaconda
Notes on installing Python on Mac
Notes on installing Python on CentOS
Installing Kivy on Windows10 64bit Python3.5
Anaconda python environment construction on Windows 10
Notes on installing Python using PyEnv
Use Tensorflow 2.1.0 with Anaconda on Windows 10!
Install PyStan on Windows without Anaconda
Notes on installing Ubuntu 18.04 on the XPS 15 7590
Python on Windows
Notes for installing Sublime Text on Ubuntu
[Note] Procedures for installing Ubuntu on Windows 10
Notes on Flask
Installing Anaconda Python on an ECS instance
Theano on Anaconda
Use without installing python 2.x on Windows
Run py.test on Windows Anaconda and MinGW
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
Notes for using TensorFlow on Bash on Ubuntu on Windows
Installing TensorFlow on Windows Easy for Python beginners
How to install / verify graphviz on anaconda / windows10
Notes on neural networks
Linux (WSL) on Windows
Celery notes on Django
Use pyvenv on Windows
Installing pandas on python2.6
python basic on windows ②
Install python on windows
Install pycuda on Windows10
Build TensorFlow on Windows
Try FEniCS on Windows!
Build XGBoost on Windows
Install pygraphviz on Windows 10
Use Ansible on Windows
Try Poerty on Windows
Install Chainer 1.5.0 on Windows
Installing pyenv on ubuntu 16.04
Use QuTiP on Windows
Use pip on Windows
Notes on using Alembic
Anaconda Package Management Notes
Notes on SciPy.linalg functions
Create a comfortable Python 3 (Anaconda) development environment on windows
A memo of installing Chainer 1.5 for GPU on Windows
Notes on creating a virtual environment with Anaconda Navigator
Make anaconda environment available from command prompt on windows
Install Numpy on virtualenv on Windows
Set-enable Python virtualenv on Windows
Install cvxopt on 64bit Anaconda
Run Jupyter on Ubuntu on Windows
Run Openpose on Python (Windows)
Notes on tf.function and Tracing
Install watchdog on Windows + Python 3.3
Installation notes for TensorFlow for Windows
Anaconda 4.4.0 Initial Settings for Windows
Install Win-Kex (kali-linux) on Windows 10.