Pycharm error when adding Conda virtual environment [Errno 2] No such file or directory

The error is reported as shown below

Pycharm error when adding Conda virtual environment [Errno 2] No such file or directory
Insert image description here

Solution:

You need to enter the path oflocally installed conda.exe in the Conda executable column.

1. Find local conda.exe:

Enter at the command line

conda env list

The path followed by the base environment is the Anaconda installation path
After the path in the red box, continue to look for conda.exe in the Scripts folder
Insert image description here

2. Enter the local conda.exe into the Conda executable column

Find the path of your conda.exe file in Pycharm and enter it.
Insert image description here
Click Load Environments

Insert image description here

3. After loading successfully, you can choose the environment you need.

Insert image description here

Guess you like

Origin blog.csdn.net/ArcGis_Niu/article/details/130834747