homebrew python environment construction

Build notes on Mac

policy

—— As simple as possible ――Because I have just started, I will do my best with python3 --Because it is confusing, Python version switching is only pyenv global --I want to use jupyter, so install anaconda with pyenv --opencv3 installed separately -The basic idea of version switching is tailored to this person: Qiita

environment

Building a Python3 environment

$brew install python
$brew install pyenv
$pyenv install anaconda3-4.0.0 (insert the newest one)
$pyenv global anaconda3-4.0.0
$pyenv rehash
$brew tap homebrew/science
$brew install opencv3 --with-python3

Described below in .bash_profile etc. Please refer to ~ / .pyenv first.

export PYENV_ROOT="${HOME}/.pyenv"
export PATH=${PYENV_ROOT}/bin:$PATH
eval "$(pyenv init -)"

Start jupeter notebook, create a new note of python3, and confirm that there is no error in import cv2.

I'm not sure what anaconda navigator can do.

By installing anaconda, anaconda navigator will appear on the Mac desktop. There is a start button for jupyter and Ipython, but if you type a command from the terminal normally, it will start. .. ..

It seems that you can switch the environment (Python version) with this, but it does not switch well in your own environment.

$pyenv versions The environment created in is displayed, but it does not switch. .. .. An environment created with $ pyenv global navigator Even if it doesn't switch ... what's this? ?? (After installing Anaconda3 below, it was switched according to the environment construction method when I wanted to use python2.7)

People who used it as a reference

Minimum notes when using Python on Mac (Homebrew edition) Doesn't switch with pyenv global! Environment construction method when you want to use python2.7 after installing Anaconda3 Note from installing Homebrew to building an Anaconda environment for Python with pyenv The story that the Homebrew environment was blown away when Anaconda was added

Recommended Posts

homebrew python environment construction
Python environment construction
Environment construction (python)
python environment construction
Python --Environment construction
Python environment construction
python environment construction
python windows environment construction
Python development environment construction
python2.7 development environment construction
Mac environment construction Python
Python environment construction @ Win7
Python + Anaconda + Pycharm environment construction
Python environment construction (Windows10 + Emacs)
CI environment construction ~ Python edition ~
Python environment construction For Mac
Anaconda3 python environment construction procedure
Python3 environment construction (for beginners)
Python environment construction and TensorFlow
Python environment construction under Windows7 environment
[MEMO] [Development environment construction] Python
Environment construction of python2 & 3 (OSX)
Python environment construction memo on Windows 10
Get started with Python! ~ ① Environment construction ~
Anaconda python environment construction on Windows 10
Setup modern Python environment with Homebrew
Python + Unity Reinforcement learning environment construction
I checked Mac Python environment construction
Python environment construction memo on Mac
Python environment construction (pyenv, anaconda, tensorflow)
[Python3] Development environment construction << Windows edition >>
Python development environment construction on macOS
Python environment construction (pyenv + poetry + pipx)
Environment construction of python3.8 on mac
Python3 environment construction with pyenv-virtualenv (CentOS 7.3)
Python3 TensorFlow for Mac environment construction
Emacs Python development environment construction memo
pytorch @ python3.8 environment construction with pipenv
[docker] python3.5 + numpy + matplotlib environment construction
Python3.6 environment construction (using Win environment Anaconda)
OpenCV3 & Python3 environment construction on Ubuntu
DeepIE3D environment construction
Emacs-based environment construction
Linux environment construction
python environment settings
django environment construction
CodeIgniter environment construction
Golang environment construction
Word2vec environment construction
[Ubuntu 18.04] Python environment construction with pyenv + pipenv
Python (anaconda) development environment construction procedure (SpringToolsSuites) _2020.4
Python project environment construction procedure (for windows)
[Python] Road to snake charmer (1) Environment construction
Python3 + venv + VSCode + macOS development environment construction
VScode environment construction (Windows10, Python, C ++, C, Git)
Environment construction procedure: Ubuntu + Apache2 + Python + Pyramid
Python and machine learning environment construction (macOS)
Let's get along with Python # 0 (Environment construction)
Windows + gVim + Poetry python development environment construction
Python3 TensorFlow environment construction (Mac and pyenv virtualenv)
Collecting information from Twitter with Python (Environment construction)