Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)

I want to install the previous version of Python 3 in my macOS using brew.

I have used the below command:

brew install python

With the above code, I got the latest version of Python but I want to install the previous version of Python 3.6.5

1 Answer

0 votes
by (108k points)

For installing Python 3.6.5, simply use:

brew unlink python # ONLY if you have installed (with brew) another version of python 3

brew install --ignore-dependencies https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb

If you prefer to retrieve a previously installed version, then:

brew info python           # To see what you have previously installed

brew switch python 3.x.x_x # Ex. 3.6.5_1

If you are a beginner and want to know more about Python, then do refer to the Python certification course. 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...