Recently, I started studying Deep Learning at Deep Learning from scratch.
In the process, it is necessary to prepare an environment of Anaconda, which is a distortion that can use data analysis libraries such as NumPy and Matplotlib, and in the book, install it from Anaconda official page. It says to install using a shell, but I wanted to use pyenv, so I'll write the steps I took at that time.
It's pretty easy, just do the following:
$ pyenv install anaconda3-4.0.0
ʻAnaconda3-4.0.0` Activate the environment
$ pyenv activate anaconda3-4.0.0
(anaconda3-4.0.0) $ pip list
alabaster (0.7.7)
anaconda-client (1.4.0)
anaconda-navigator (1.1.0)
...
numpy (1.10.4)
...
matplotlib (1.5.1)
...
~~ I really wanted to create a virtualenv environment, but even if I did the following, libraries such as numpy
were not copied, so I have no choice but to use the above method. ~~
$ pyenv virtualenv anaconda3-4.0.0 deeplearning
$ pyenv activate deeplearning
(deeplearning) $ pip list
pip (9.0.1)
setuptools (27.2.0)
wheel (0.29.0)
~~ If you know how to do it, please let me know. ~~
It seems that anaconda uses the conda command to create a virtualenv environment.
$ conda create -n deeplearning anaconda
$ source activate deeplearning
Or
$ pyenv activate anaconda3-4.0.0/envs/deeplearning
Recommended Posts