I want to install python version 3.6. when I do brew install python
it installs latest version of python ie 3.8
.
I tried below solution but it is giving me error.
brew install --ignore-dependencies https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb
Error:
Error: Calling Installation of python from a GitHub commit URL is disabled! Use 'brew extract python' to stable tap on GitHub instead.
I even tried solution in this link but not working.
Also When I do:
brew search python
I don't find python@3.6
init
Maybe you should do pyenv
to manage the different python versions.
brew install pyenv
pyenv install 3.6.5
pyenv install 3.7.4
If you want to control the shell to use different python versions, you can try this:
pyenv shell 3.6.5
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.