I am running MacOS Mojave (10.14.6) and want to install python 3.7.
Currently I have python 3.6 installed:
$ python -V
Python 3.6.9
There seems to be python 3.7 available:
$ brew search python
==> Formulae
app-engine-python boost-python3 ipython python-markdown [email protected] reorder-python-imports
boost-python gst-python micropython python-yq [email protected] ✔ wxpython
==> Casks
awips-python kk7ds-python-runtime mysql-connector-python
If you meant "python" specifically:
It was migrated from homebrew/cask to homebrew/core.
So I tried to install python 3.7 as follows
brew install [email protected]
with a lot of output. I also executed the suggested line to have python 3.7 symlinked:
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> /Users/me/.bash_profile
I sourced the file .bash_profile
, but still python is only 3.6:
$ python -V
Python 3.6.9
I also ran the following command with an error:
$ brew switch python 3.7
Error: python does not have a version "3.7" in the Cellar.
python's installed versions: 3.7.6_1
and restarted the computer, but without success.
So how to install python 3.7 as the standard-python-installation on a mac? (Could be also python3.8 by all means).