Building an Anaconda environment for Python with pyenv

Use Homebrew.

1, install pyenv

Terminal.


$ brew install pyenv
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
$exec $SHELL -l

2, Install Python (Anaconda)

I will use Python 3 series this time.

Terminal.


$ pyenv install anaconda3-2019.10
$ pyenv global anaconda3-2019.10

3, Version check

Terminal.


$ pyenv versions

4, Summary

#List that can be installed
$ pyenv install -l

#Installation
$pyenv install version

#Run in all folders
$pyenv global version

#Run in a specific folder
$pyenv local version

5, Anaconda command

#help
$ conda -h

#List of virtual environments
$ conda info -e

#Create virtual environment
$ conda create -n Environment name
$ conda create -n environment name python=version

#Switch virtual environment
$activate environment name

#Exit the virtual environment
$ deactivate

#Full list of packages in the current virtual environment
$ conda list

Recommended Posts

Building an Anaconda environment for Python with pyenv
[Python] Building an environment with Anaconda [Mac]
Notes from installing Homebrew to building an Anaconda environment for Python with pyenv
Building a Python environment for pyenv, pyenv-virtualenv, Anaconda (Miniconda)
Building an environment for natural language processing with Python
[Pyenv] Building a python environment with ubuntu 16.04
Building an environment for executing Python scripts (for mac)
Building a Python environment with WLS2 + Anaconda + PyCharm
Various commands for building an environment with Apache
Try building an environment for MayaPython with VisualStudioCode
Install Python environment with Anaconda
Use Python installed with pyenv for PL / Python execution environment
[Python] Django environment construction (pyenv + pyenv-virtualenv + Anaconda) for macOS
Python environment construction (pyenv, anaconda, tensorflow)
Building a virtual environment with Python 3
Created an environment for Anaconda & Jupyter
[Python] Building an environment for competitive programming with Atom (input () can be used!) [Mac]
pyenv + anaconda + python3
Change Python 64bit environment to 32bit environment with Anaconda
Building a Python3 environment with Amazon Linux2
Build an environment for Blender built-in Python
Use smbus with python3 under pyenv environment
Note when creating an environment with python
[Python] Create a virtual environment with Anaconda
Building a Python 3.6 environment with Windows + PowerShell
[Mac] Building a virtual environment for Python
Build Python environment with Anaconda on Mac
Build a python virtual environment with pyenv
Building a Python development environment for AI development
Building an environment for "Tello_Video" on Raspbian
Building an environment for "Tello_Video" on Windows
How about Anaconda for building a machine learning environment in Python?
Building a Windows 7 environment for getting started with machine learning with Python
Building a virtual environment for Mayavi dedicated to Python 3.6, Anaconda, Spyder users
Selenium + WebDriver (Chrome) + Python | Building environment for scraping
[Definitive Edition] Building an environment for learning "machine learning" using Python on Windows
For beginners to build an Anaconda environment. (Memo)
Build python environment with pyenv on EC2 (ubuntu)
Building a python environment with virtualenv and direnv
Building an environment that uses Python in Eclipse
[Definitive Edition] Building an environment for learning "machine learning" using Python on Mac
Use multiple versions of python environment with pyenv
Image Processing with Python Environment Setup for Windows
Building an environment for matplotlib + cartopy on Mac
Use Python 3.8 with Anaconda
[Memo] Build a virtual environment with Pyenv + anaconda
Python environment with docker-compose
Commands for creating a python3 environment with virtualenv
Introduction to Python "Re" 1 Building an execution environment
Use Python in Anaconda environment with VS Code
Install python with pyenv
From Python environment construction to virtual environment construction with anaconda
Virtual environment with Python 3.6
Python environment for projects
Building an environment to comply with the Python coding standard (PEP8) with Eclipse + PyDev
Write about building a Python environment for writing Qiita Qiita
Build an interactive environment for machine learning in Python
Recommendation of building a portable Python environment with conda
Building a Docker working environment for R and Python
Create a virtual environment with Anaconda installed via Pyenv
Building an environment for "Tello_Video" on Mac OS X