Update python on Mac to 3.7-> 3.8

With AtCoder supporting Python 3.8, I decided to update the Python I had on my Mac.

However, even if I googled, only fragmentary information came out and it took a long time. So, I have put together an update procedure for myself. It seems that the same situation will occur again when 3.9 comes out.

Writer's environment

MacBook Air OS Catalina version 10.15

procedure

When I tried to install Python 3.8.2 from pyenv, I was told something like this ↓.

python-build: definition not found: 3.8.2

See all available versions with `pyenv install --list'.

If the version you need is missing, try upgrading pyenv:

  brew update && brew upgrade pyenv

HomeBrew and pyenv are old ...? If you touch this area frequently, there should be no problem, but if you touch it only occasionally and are covered with dust, you will have to update it.

#HomeBrew Appde
brew update

#pyenv appde (1.2.13 -> 1.2.15)
brew upgrade pyenv

It took about 10 minutes to finish the app. (too late?) Just in case, after confirming that there is 3.8.2 with pyenv install --list, start Python installation.

# Python3.8.Install 2
pyenv install 3.8.2

The installation was completed after about 10 minutes, but I saw it was old, so I will set Global.

python -V
# Python 3.7.4

pyenv versions
#  system
#* 3.7.4 (set by /Users/****/.pyenv/version)
#  3.8.2

pyenv global 3.8.2

python -V
# Python 3.8.2

end

Recommended Posts

Update python on Mac to 3.7-> 3.8
Update Python on Mac from 2 to 3
python on mac
Steps to install python3 on mac
Install Python on Mac
Install Python 3 on Mac
How to erase Python 2.x on Mac.
Install Python 3.4 on Mac
Install pygame on python3.4 on mac
How to update Python Tkinter to 8.6
Handling of python on mac
Install pandas 0.14 on python3.4 [on Mac]
Notes on installing Python on Mac
Steps to install the latest Python on your Mac
Preferences to generate animated GIFs from Python on Mac
Python update (2.6-> 2.7)
I want to AWS Lambda with Python on Mac!
Building a Python environment on Mac
If python on mac goes missing
Python 3.6 on Windows ... and to Xamarin.
How to install mysql-connector-python on mac
Steps to install matplotlib on Mac
Introduction to Python Hands On Part 1
Convert wma to mp3 on Mac
Create a Python environment on Mac (2017/4)
Install python3 on Mac (El Capitan)
How to install OpenCV on Mac
Environment construction of python3.8 on mac
If Python 3.5.0 installation fails on Mac
Update applications running on Django 1.7 to Django 1.8
Introduction to Python Django (2) Mac Edition
Call C / C ++ from Python on Mac
Migrate Django applications running on Python 2.7 to Python 3.5
Updated to Python 2.7.9
How to rebuild python environment from pyenv on Mac environment (El Capitan)
How to read pydoc on python interpreter
How to install drobertadams / toggl-cli on Mac
Python on Windows
twitter on python3
[Kivy] How to install Kivy on Windows [Python]
Introducing MAMP + Python + SQLAlchemy (Mysql-Python) on Mac
Create a python environment on your Mac
Follow active applications on Mac with Python
I want to use Linux on mac
How to update php on Amazon linux 2
Steps to install Python environment on Ubuntu
How to prepare Python development environment [Mac]
I want to know if you install Python on Mac ・ Iroha
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 update security on CentOS Linux 8
Install python on xserver to use pip
Python on Windbg
How to update the python version of Cloud Shell on GCP
Video processing using Python + OpenCV on Mac
"Backport" to python 2
Things to watch out for when creating a Python environment on a Mac
Work memo to migrate and update Python 2 series scripts on the cloud to 3 series
Try to build python and anaconda environment on Mac (by pyenv, conda)