[PYTHON] Build a numerical calculation environment with pyenv and miniconda3

It seems that almost all of Python's numerical calculation libraries have been migrated to Python3 since 2012, so I tried to build an environment with Python3.

Recently, pyenv seems to be the standard for installing and using multiple versions of Python. It's easy because you can use Homebrew on Mac.

brew install pyenv

↓ Don't forget to write this as .zshrc.

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"

eval "$(pyenv init -)"

You can see a list of versions that can be installed with pyenv install.

pyenv install

...
  anaconda-1.9.1
...

...
  miniconda-3.0.5
...

...
  miniconda3-3.0.5
...

So I found anaconda and miniconda, so I thought I would use virtualenv at first, but decided to go with pyenv only.

Install miniconda3 and

pyenv install miniconda3-3.0.5
pyenv global miniconda3-3.0.5

Maybe I needed pyenv rehash here.

Install other libraries with the conda command.

conda install numpy scipy matplotlib ipython pandas
conda install pyzmq Jinja2 tornado

(The one in the back seems to be necessary for ipython notebook)

You should need pyenv rehash again here. (If you do ʻeval "$ (pyenv init-)" , it will also do pyenv rehash`, so if you write this in zshrc etc., you can just launch another shell)

You don't need to build your own because you just installed the pre-built and distributed packages. great.

What is miniconda3

Everyone seems to think that building a numerical calculation environment for Python is troublesome, and Anaconda is made as a complete package. Anaconda has an installer for Mac, but you can also install the library etc. by installing only the minimum tool called miniconda. This time I used miniconda3 which is based on Python3.

There is also an all-in-one package called Enthought Python Distribution (EPD), which I used to use. It's called Canopy now, but it doesn't seem to support Python 3 yet.

Recommended Posts

Build a numerical calculation environment with pyenv and miniconda3
Build a python virtual environment with pyenv
[Memo] Build a virtual environment with Pyenv + anaconda
Build a python virtual environment with virtualenv and virtualenvwrapper
Environment construction with pyenv and pyenv-virtualenv
Build a machine learning scikit-learn environment with VirtualBox and Ubuntu
Build a Python environment with WSL + Pyenv + Jupyter + VS Code
[Pyenv] Building a python environment with ubuntu 16.04
Easily build a development environment with Laragon
Build a 64-bit Python 2.7 environment with TDM-GCC and MinGW-w64 on Windows 7
Build a Tensorflow environment with Raspberry Pi [2020]
Build a Python environment on your Mac with Anaconda and PyCharm
Build a Fast API environment with docker-compose
Build a modern Python environment with Neovim
[Linux] Build a Docker environment with Amazon Linux 2
[DynamoDB] [Docker] Build a development environment for DynamoDB and Django with docker-compose
Build a CentOS Linux 8 environment with Docker and start Apache HTTP Server
Create a Python3 environment with pyenv on Mac and display a NetworkX graph
Build a drone simulator environment and try a simple flight with Mission Planner
Build a C language development environment with a container
Build python environment with pyenv on EC2 (ubuntu)
Building a python environment with virtualenv and direnv
Build a python environment with ansible on centos6
[Python] Build a Django development environment with Docker
Build a Django environment with Vagrant in 5 minutes
Build a Django development environment with Doker Toolbox
Build a Python environment with OSX El capitan
Build PyPy and Python execution environment with Docker
Build a python execution environment with VS Code
Build python3.x with pyenv
Numerical calculation with Python
Build a Python + bottle + MySQL environment with Docker on RaspberryPi3! [Trial and error]
Build a data analysis environment that links GitHub authentication and Django with JupyterHub
Build a TensorFlow development environment on Amazon EC2 with command copy and paste
Build a distributed environment with Raspberry PI series (Part 3: Install and configure dnsmasq)
Building a Python environment for pyenv, pyenv-virtualenv, Anaconda (Miniconda)
Create a virtual environment with Anaconda installed via Pyenv
Build a Python environment on your Mac using pyenv
Build a machine learning application development environment with Python
Build a Python development environment using pyenv on MacOS
Start numerical calculation in Python (with Homebrew and pip)
Build a development environment with Poetry Django Docker Pycharm
Build a Django environment for Win10 (with virtual space)
Build a LAMP environment [CentOS 7]
Build python3 environment with ubuntu 16.04
ML environment construction with Miniconda
Build python environment with direnv
Build a machine learning environment
Build a Python environment offline
python with pyenv and venv
Install LAMP on Amazon Linux 2 and build a WordPress environment.
Build a machine learning environment on mac (pyenv, deeplearning, opencv)
Build a Django development environment with Docker! (Docker-compose / Django / postgreSQL / nginx)
Build a Docker environment that can use PyTorch and JupyterLab
[Memo] Build a development environment for Django + Nuxt.js with Docker
Numerical calculation with Phython while learning nonlinear dynamics and chaos [1]
Build a Go development environment with VS Code's Remote Containers
(Now) Build a GPU Deep Learning environment with GeForce GTX 960
[Django] Build a Django container (Docker) development environment quickly with PyCharm
Build a comfortable development environment with VSCode x Remote Development x Pipenv
Build a Python environment and transfer data to the server