[PYTHON] Use Anaconda in pyenv environment

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. ~~

2017/04/04 Addendum

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

Use Anaconda in pyenv environment
Use Python in Anaconda environment with VS Code
Byobu crashes in pyenv environment
Install scrapy in python anaconda environment
Various Anaconda settings in Windows 10 environment
Python environment construction (pyenv, anaconda, tensorflow)
install tensorflow in anaconda + python3.5 environment
Use Python in pyenv with NeoVim
Use django-debug-toolbar in VirtualBox / Vagrant environment
pyenv + pyenv-Automatically load the virtualenv environment in the virtualenv environment
Python 3.3 in Anaconda
Use tensorflow in an environment without root
Use smbus with python3 under pyenv environment
pyenv + virtualenv + Anaconda
How to use Anaconda interpreter in PyCharm
pyenv + anaconda + python3
Creating a virtual environment in an Anaconda environment
[mac] Install R in pyenv + Jupyter-Lab environment
Use WebDAV in a Portable Docker environment
Run PIFuHD in Windows + Anaconda + Git Bash environment
Use the latest pip in a virtualenv environment
Building an Anaconda environment for Python with pyenv
Use multiple versions of python environment with pyenv
[Memo] Build a virtual environment with Pyenv + anaconda
Use Python in your environment from Win Automation
python development environment -use of pyenv and virtualenv-
How to use tkinter with python in pyenv
Use jupyter-lab installed in python virtual environment (venv)
Error running Jupyter Notebook in Anaconda virtual environment
Use pydantic when reading environment variables in Python
Use os.getenv to get environment variables in Python
Use anaconda virtual environment with Zsh (problem fix)
Use a free GPU in your favorite environment
Use config.ini in Python
Use DataFrame in Java
Use dates in Python
I want to use Python in the environment of pyenv + pipenv on Windows 10
Use Mean in DataFrame
Use Valgrind in Python
Use Python 3.8 with Anaconda
virtualenvwrapper in windows environment
R in Anaconda (in Ubuntu 14.04)
Use ujson in requests
virtual environment in python
pyenv + fish environment construction
How to use Pyenv
Use profiler in Python
Anaconda3 environment installation procedure
Development environment in Python
Anaconda environment construction memo
Create an Anaconda virtual environment in your project folder
Create a virtual environment with Anaconda installed via Pyenv
Procedure to install TensorFlow in fish shell environment (Anaconda 4.0.0)
Use Python installed with pyenv for PL / Python execution environment
[For beginners] Install the package in the Anaconda environment (Janome)
Use the CASA Toolkit in your own Python environment
How to resolve SSL module errors in Anaconda environment
Use Sudachipy's learned word2vec in a low memory environment
[Python] Django environment construction (pyenv + pyenv-virtualenv + Anaconda) for macOS
How to use jupyter lab in Windows 10 local environment
Command line collection for using virtual environment in Anaconda