I'm addicted to it, so make a note Mostly here was used as a reference. M (_ _) m
brew instal pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv install —list#Check the latest version
pyenv install 3.5.1
「zipimport.ZipImportError: can't decompress data; zlib not available」 If it cannot be installed, it seems that it could be solved by the following. (Reference)
brew rm libpng
brew install libpng --universal
brew install wine --with-gcc
Once installed
#Version switching
pyenv global 3.5.0
pyenv rehash
#Verification
python --version
#pip installation
easy_install pip
#Verification
pip list
#Package confirmation
pip freeze
#Package export
pip freeze > pip_packages.txt
#Load package (install the latest version without version)
pip install -r pip_packages.txt
Recommended Posts