How to rebuild python environment from pyenv on Mac environment (El Capitan)

Put pyenv and pip-rehash

brew install pyenv
brew install homebrew/boneyard/pyenv-pip-rehash

Put the minimum required settings in .zshrc (change according to Shell) There is an article that sets PYENV_ROOT, but there is no need to change the installation destination of python. By default, it is installed in ~ / .pyenv / shims, but if you really want to change it, set it.

vi ~/.zshrc
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
source ~/.zshrc

Put python3.5.1 in pyenv

Check the version that can be installed

pyenv install -l

Install by specifying the version

pyenv install 3.5.1

Change to 3.4.3 with system default python installed pyenv local x.x.x is a python version of the current directory only, so use global to change it system-wide.

pyenv global 3.5.1

Reflect the settings

pyenv rehash

Check if it is switched

python --version

Install pip for python package management

easy_install pip

Recommended Posts

How to rebuild python environment from pyenv on Mac environment (El Capitan)
Install python3 on Mac (El Capitan)
Update Python on Mac from 2 to 3
Build a python data analysis environment on Mac (El Capitan)
How to prepare Python development environment [Mac]
How to erase Python 2.x on Mac.
How to make a .dylib library from a .a library on OSX (El Capitan)
Try to build python and anaconda environment on Mac (by pyenv, conda)
How to read environment variables from .env file in PyCharm (on Mac)
Anyone can understand how to build an initial environment for Python on Mac September 2016 (pyenv + virutalenv)
How to set up a Python environment using pyenv
How to build an environment for using multiple versions of Python on Mac
Preferences to generate animated GIFs from Python on Mac
How to build a Django (python) environment on docker
Update python on Mac to 3.7-> 3.8
Build a Python environment on your Mac using pyenv
Install Python environment on local PC (pyenv, venv on Mac)
How to build a Python environment on amazon linux 2
When import tkinter is not possible on Mac OS X 10.11.3 (El Capitan) + pyenv + Python 3.5.1.
How to build a beautiful Python environment on a new Mac and install Jupter Notebook
How to create a Python 3.6.0 environment by putting pyenv on Amazon Linux and Ubuntu
Python environment construction on Mac (pyenv, virtualenv, anaconda, ipython notebook)
How to install Python2.7 python3.5 with pyenv (on RHEL5 CentOS5) (2016 Nov)
How to build a new python virtual environment on Ubuntu
Using NAOqi 2.4.2 Python SDK on Mac OS X El Capitan
Build a python environment with pyenv (OS X El Capitan 10.11.3)
Building a Python environment on Mac
How to install mysql-connector-python on mac
Create a Python environment on Mac (2017/4)
Python environment construction memo on Mac
How to install OpenCV on Mac
Environment construction of python3.8 on mac
How to access wikipedia from python
Steps to install python3 on mac
Call C / C ++ from Python on Mac
How to manage Python minor version (build virtual environment) on Windows (without Pyenv or WSL)
How to use python put in pyenv on macOS with PyCall
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
From PyCUDA environment construction to GPGPU programming on Mac (MacOS 10.12 Sierra)
How to install Theano on Mac OS X 10.10 (using pyenv, anaconda)
Everything from building a Python environment to running it on Windows
How to access environment variables in Python
How to read pydoc on python interpreter
How to install drobertadams / toggl-cli on Mac
[Kivy] How to install Kivy on Windows [Python]
How to update Google Sheets from Python
Create a python environment on your Mac
Steps to install Python environment on Ubuntu
Connecting from python to MySQL on CentOS 6.4
Memorandum on how to use gremlin python
Notes on building Python and pyenv on Mac
Build Python environment with Anaconda on Mac
How to access RDS from Lambda (python)
How to add python module to anaconda environment
After buying a new Mac, use pyenv + poetry to build a Python environment.
How to use gcc when compiling extension modules from setup.py on Mac
Build an environment with pyenv, pyenv-virtualenv, jupyter on OS X El Capitan
Notes on setting pyenv and python environment using Homebrew on Mac OS Marvericks
Create a Python3 environment with pyenv on Mac and display a NetworkX graph
python on mac
Python3 TensorFlow environment construction (Mac and pyenv virtualenv)