Home > front end >  How can i create environment in python?
How can i create environment in python?

Time:02-11

My project has an python version(3.10),i want to add python (3.6) version. i dont want to delete the old version and my pc has not enough space for virtual machine. How can i create env? Can anyone help? Python was first installed directly, should I install anaconda?

CodePudding user response:

enter image description here

I solved the problem by downloading the anaconda promt, creating a new env from there and running the vscode from within the anaconda, when I type the python version, the version I set appears when I type it in normcal cmd, the version 3.10 appears.

CodePudding user response:

If you want that, pls try this way. Rename python.exe to python36.exe. And then pls add this file path to environment path. Then you can try this command in command prompt. python36

  • Related