I think the warning said it all. brew link python3
will give you python 3.7.7
.
If you like to use python 3.8
, you can use brew install python@3.8
instead.
The best approach to manage Python versions is to follow Moshe Zadka's recommendations:
$ brew install pyenv
$ pyenv install 3.8.3
$ pyenv global 3.8.3
.zshrc
or .bash_profile
which ever you use) to work correctly, eg:$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc
Your configuration file will then be updated with the following:
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
Then you're good to go.
-enjoy Python!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.