Install Python 3 on Mac

I'm addicted to it, so make a note Mostly here was used as a reference. M (_ _) m

environment

procedure

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

Install Python on Mac
Install Python 3 on Mac
Install Python 3.4 on Mac
Install pygame on python3.4 on mac
Install pandas 0.14 on python3.4 [on Mac]
python on mac
Install Python 3.7 Anaconda on MAC, but Python 2
Install python3 on Mac (El Capitan)
Steps to install python3 on mac
Install Tensorflow on Mac
Install python on WSL
Install pyenv on mac
Install Python on Pidora.
Install Scrapy on python3
Install Ansible on Mac
Install Python3.4 on CentOS 6.6
Install python on windows
Install Python 2.7.3 on CentOS 5.4
Install Python 3.3 on Ubuntu 12.04
Install Caffe on Mac
Install mecab on mac
Install mecab-python on Mac
Install Python 3.6 on Docker
Install Python 3.8 on RHEL 8 (AppStream)
Install watchdog on Windows + Python 3.3
install python
Install module on Anaconda (Mac)
Install OpenPose on mac (Catalina)
Install numba on your Mac
Handling of python on mac
Update python on Mac to 3.7-> 3.8
Install OpenCV on Ubuntu + python
Notes on installing Python on Mac
Python --Install MySQLDB on EC2
Install Django on your Mac
Install pillow on Mac OSX 10.9
[Mac] Tips: Install pyquery on Mac [pyquery]
Install Python 3.8 on CentOS 8 (AppStream)
[Python] [Chainer] [Windows] Install Chainer on Windows
Install Python3 on Mac and build environment [Definitive Edition]
Install selenium on Mac and try it with python
Steps to install the latest Python on your Mac
Install Python environment on local PC (pyenv, venv on Mac)
Building a Python environment on Mac
Install Python Pillow on Amazon Linux
Install Python 3.8 on Ubuntu 18.04 (OS standard)
If python on mac goes missing
Install Python3 on Sakura server (FreeBSD)
Install anaconda on Mac → Add Library
How to install mysql-connector-python on mac
Install python2.7 on windows 32bit environment
Steps to install matplotlib on Mac
Install xgboost (python version) on Windows
Create a Python environment on Mac (2017/4)
Install Pytorch on Blender 2.90 python on Windows
Python environment construction memo on Mac
Install Scipy on Mac OS Sierra
How to install OpenCV on Mac
Install mitmproxy on Mac OS X
Environment construction of python3.8 on mac
Install VirtualBox on CentOS 7 on VirtualBox (mac + vagrant)