[PYTHON] Anaconda environment construction on Mac (2018 version)

** This article is for people who want to use Anaconda on mac. It may not be suitable for those who just want to install Python for study. We recommend that you consider whether you really need pyenv by referring to the article below. ** **

-Flowchart whether pyenv is required --Qiita -Python development environment for macOS using venv 2016


Please install the latest version of homebrew in advance.

  1. Install pyenv

    brew install pyenv
    

Add the following (make the completion of various commands of pyenv effective)

```:.bash_profile
#For pyenv
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
```
  1. Install anaconda Checking the installable packages

    pyenv install -l
    Available versions:
      2.1.3
      2.2.3
      (Abbreviation)
      anaconda3-4.4.0
      anaconda3-5.0.0
      anaconda3-5.0.1
      anaconda3-5.1.0
      ironpython-dev
      ironpython-2
      (Abbreviation)
    

Install the latest anaconda3-5.1.0 at the moment (August 28, 2018).

```
pyenv install anaconda3-5.1.0

#If you change the global python, it will affect something else, so use it locally
pyenv local anaconda3-5.1.0
```
  1. Create a virtual environment

    #Below is python3.Build a 5-based anaconda environment
    conda create -n py35 python=3.5 anaconda
    conda info -e #Verification
    
  2. Enable virtual environment

    #This time activate solves the batting problem with pyenv.
    conda activate py35
    
  3. Disable virtual environment

    #Deactivate when you finish using
    conda deactivate
    
    
  4. Delete when no longer needed

    conda remove -n py35 --all
    

Recommended Posts

Anaconda environment construction on Mac (2018 version)
Anaconda environment construction on CentOS7
Python environment construction memo on Mac
Environment construction of python3.8 on mac
Build Python environment with Anaconda on Mac
Anaconda-4.2.0-python3 environment construction (Mac)
Anaconda environment construction memo
Mac environment construction Python
Pyxel environment construction (Mac)
Environment construction of TensorFlow + JupyterNotebook + Matplotlib on Windows version Anaconda (August 2017 version)
Put Python's numerical calculation environment Anaconda on mac (2)
Put Python's numerical calculation environment Anaconda on mac
Python environment construction (Anaconda + VSCode) @ Windows10 [January 2020 version]
[0] TensorFlow-GPU environment construction built with Anaconda on Ubuntu
Python + Anaconda + Pycharm environment construction
Pyramid + mongodb environment on Mac
Install module on Anaconda (Mac)
Python environment construction For Mac
Anaconda3 python environment construction procedure
Anaconda3 × Pycharm environment construction memo
[Tensorflow] Tensorflow environment construction on Windows 10
Linux environment construction (on WSL environment)
Ansible environment construction For Mac
[Environment construction] @anaconda that runs keras / tensorflow on GPU
Building a Python environment on Mac
Mac + Eclipse (PyDev) + Django environment construction
Python environment construction memo on Windows 10
tensor flow with anaconda on mac
Install anaconda on Mac → Add Library
[Python] Anaconda environment construction (installation, startup, virtual environment, package management) Mac environment
Create a Python environment on Mac (2017/4)
I checked Mac Python environment construction
Install Python 3.7 Anaconda on MAC, but Python 2
Python environment construction (pyenv, anaconda, tensorflow)
Python development environment construction on macOS
[Linux] Docker environment construction on Redhat
Python3 TensorFlow for Mac environment construction
Development environment construction (2020 version, WSL2 + VcXsrv)
Environment construction of "Tello_Video" on Ubuntu
Python3.6 environment construction (using Win environment Anaconda)
OpenCV3 & Python3 environment construction on Ubuntu
VScode environment construction (on Mac) & graph display in Python (@browser)
Build a Python environment on your Mac with Anaconda and PyCharm
From PyCUDA environment construction to GPGPU programming on Mac (MacOS 10.12 Sierra)
Django Crispy Tutorial (Environment Building on Mac)
Install opencv on Mac using Anaconda Navigator
Python (anaconda) development environment construction procedure (SpringToolsSuites) _2020.4
Vue.js + Flask environment construction memorandum ~ with Anaconda3 ~
Create a python environment on your Mac
Put Anaconda on your Mac using Pyenv
I installed Kivy on a Mac environment
GeoDjango + SQLite environment construction on OS X
Mac OS X Yosemite 10.10 Development environment construction
Install anaconda on a new Mac anyway
Mac OS X development environment construction memo
Django environment construction
Emacs-based environment construction
Linux environment construction
Python environment construction
Environment construction (python)
django environment construction