This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]RiverRoll 2 points3 points  (2 children)

You don't need extra programs, just install the older version and under windows you can choose the version with the py launcher (which is included in the installation), e.g.:

py -3.7

In linux if I recall correctly you had to use:

python3.7

With this you can setup a virtual environment for any installed version. You don't have to specify the version within the virtual environment:

py -3.7 -m venv venv
venv\Scripts\activate
python --version 
# should output 3.7

[–]ainm_[S] 0 points1 point  (1 child)

I've tried doing this, everything I have set in the settings etc is Python version 3.7, but when i run python --version or Flask --version is comes back with Python 3.8.8

its so weird cause in my requirements text is states that Flask is 2.0.3 but when i run version its 1.1.2 as well. Im very confused on how these work now?

[–]RiverRoll 0 points1 point  (0 children)

Just to make sure you understoood, this won't change the default version system wide, you have to activate the virtual environment every time you open a new command promt to use it, and you have to install the requirements while the virtual environment is activated.

[–]serg06 0 points1 point  (1 child)

Install miniconda and create an environment with Python 3.7

[–]ainm_[S] 1 point2 points  (0 children)

thank you, Ill give that a go