How to install two versions of python in windows 10?

Viewed 766

I have installed two versions of python in my computer (python 3.7.4 and 3.9.6). But I can't open one of the version's IDLE. For example if I installed Python 3.7.4 after that 3.9.6 the IDLE of 3.9.6 is not opening and pip(p) also not working. If I tried to open the IDLE through cmd it shows that "** IDLE can't import Tkinter. Your Python may not be configured for Tk. **" .Here I am using python 3.7.4 for 32 bit projects and python 3.9.6 for 64 bit projects. How to fix this problem. Thanks in advance.

1 Answers

You can create multiple virtual env in your system and activate specific according to your need

python3.7.4 -m venv python37-env
python3.9.6 -m venv python39-env

Refer to these document to learn more

https://docs.python.org/3/library/venv.html
Related