Home > other >  Vscode suddenly unable to change the python environment inside
Vscode suddenly unable to change the python environment inside

Time:10-02

Originally in the lower left corner to choose environment there can switch at any time before, but suddenly switch to any environment useless, cause I had a normal reference the environment package complains ModuleFoundError

Then I print sys. Path, pycharm and CMD are normal, print it out is the currently selected python environment, but is in vscode, even choose a different environment, the path of the print is the same, but also is not the path I chose, this is how to return a responsibility? What a lot of search on the net all say choose environment, but I clearly have been selected for the environment.


CodePudding user response:

Can have a try will be replaced for powershell CMD vscode, seems a powershell compatibility problems, switch environment will fail,

CodePudding user response:

han provided reference 1 floor don't be a small white response:
can have a try will be replaced for powershell CMD vscode, seems a powershell compatibility problems, switch environment will fail,


I tried to changed the default terminal CMD, or not, there is a strange phenomenon is if I order vscode the arrow in the top right corner to run python file, will be out of the question, but if I in vscode terminal input command, running is normal, whether powershell or CMD
  • Related