Hello guys, If you want the version of python 3.6 then here are the some method to downgrade the python version from 3.7 to 3.6. Lets start this article without wasting your time.
How to downgrade python version from 3.7 to 3.6
- How to downgrade python version from 3.7 to 3.6
to downgrade python version from 3.7 to 3.6 For downgrade python version from 3.7 to 3.6 use virtual environment. with help of this you can easily approach specific python versions. so here are the steps of this method : open your command prompt and then enter
pip install virtualenv
.Then install your desired Python version.Then type this into your command prompt:virtualenv \path\to\env -p \path\to\python_install.exe
, where\path\to\python_install.exe
, indicates you where is your python version and\path\to\env
it indicates path where your virtual environment is going to be.Now activate the virtual environment which is located inside the\path\to\env\Scripts\activate.bat
. - downgrade python version from 3.7 to 3.6
to downgrade python version from 3.7 to 3.6 Here are the steps of downgrade python version from 3.7 to 3.6. First of all download your wanted python version from official python website and install it as a
normal package
.Then run this codecd /Library/Frameworks/Python.framework/Version
Then Executels
to list all installed Python versionsThen runsudo rm -rf 3.
6, and remove the Python version 3.6 which you want to deleteAfter all of that checkpython3 -v
. It will display the version you wanted to install. From these steps you can easily downgrade python version from 3.7 to 3.6.
Method 1 : for windows
If You are windows users then just follow this all step.
- open your command prompt and then enter
pip install virtualenv
. - Then install your desired Python version.
- Then type this into your command prompt:
virtualenv \path\to\env -p \path\to\python_install.exe
, where\path\to\python_install.exe
, indicates you where is your python version and\path\to\env
it indicates path where your virtual environment is going to be. - Now activate the virtual environment which is located inside the
\path\to\env\Scripts\activate.bat
.
Method 2 : for brew users
For downgrade python version from 3.7 to 3.6 use the software package management system Homebrew
. with help of this you can easily approach specific python versions.
$ brew unlink python
$ brew install --ignore-dependencies https://raw.githubusercontent.com/Homebrew/homebrew-core/e128fa1bce3377de32cbf11bd8e46f7334dfd7a6/Formula/python.rb
$ brew switch python 3.6
Method 3 : for linux
Just follow this step.
- First of all download your wanted python version from official python website and install it as a
normal package
. - Then run this code
cd /Library/Frameworks/Python.framework/Version
- Now, Execute
ls
to list all installed Python versions - Then run
sudo rm -rf 3.
6, and remove the Python version 3.6 which you want to delete - After all of that check
python3 -v
. It will display the version you wanted to install.
Now, Your python version will be changed.
Method 4 : for macOS
To downgrade python version from 3.8 to 3.7 use pyenv
with Homebrew
. that will sure help you. For downgrade the version use this steps.
brew update
First Of all Install pyenv
brew install pyenv
Once intalled pyenv, install python 3.7:
pyenv install 3.7
And then set the environment PYENV_VERSION
to version of python you want to use, on this case will be 3.7:
pyenv shell 3.7
Method 5 : for Anaconda
If You are conda users then just run this command.
conda install python=3.6
to swich back python 3.7 just run this command
conda install python=3.7
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read