[python learning]——pycharm terminal interpreter and Python interpreter configuration

Table of contents

1. When the pycharm terminal is running, there is PS in front of it. What does it mean and how to change it into cmd?

1)File——settings

 2)tools——terminal——shellPath

2. How to switch between different Python interpreters in pycharm?

1)File——settings

2)project——Python interpreter

3. The interpreter switch is successful, but an error is still reported when running. It seems that the specified interpreter is not running when running?

 


1. When the pycharm terminal is running, there is PS in front of it. What does it mean and how to change it into cmd?

PS means that the terminal used by pycharm is powershell.exe. If you need to convert it to cmd.exe, you can do it through the following:

1)File——settings

 2)tools——terminal——shellPath

Just change the terminal path from powershell to cmd.exe 

2. How to switch between different Python interpreters in pycharm?

1)File——settings

2)project——Python interpreter

All Python interpreters will be displayed on the right. After selecting, click OK to complete the interpreter switching.

3. The interpreter switch is successful, but an error is still reported when running. It seems that the specified interpreter is not running when running?

In a py file, right-click and select the following operation to change the running interpreter mode from the specified interpreter to the same as the project interpreter

 

 

Guess you like

Origin blog.csdn.net/qq_45769063/article/details/125127549