The pycharm terminal uses conda activate to switch the environment to fail

Question: Today, using conda activate paddle_env to switch the environment fails

But it is valid to execute in the cmd window, and the environment name (paddle_env) will be displayed on the left side of the command line

Open the file->settings->Tools->Terminal of the pycharm interface and find that the Shell path is powershell.exe

Solution: Change the Shell path to cmd.exe, save and reopen the terminal.

The environment name can now be displayed

 

Guess you like

Origin blog.csdn.net/zdb1314/article/details/124618140