The solution to the problem that the conda virtual environment is placed on the C drive by default

1. As shown in the question

When configuring the virtual environment through conda, since it is installed on the D drive, the configured environment is placed on the C drive by default.

Pass the following command: conda env list, and finally check that the environment is indeed under the C drive

Insert image description here

2. Principle analysis

The root cause is that the default path does not have sufficient permissions

Just add a recognizable path or add permissions to the path

3. Solution

The following two solutions are shown.
The first method I can succeed
. The second method is not successful (given that there are ways to modify the configuration on the Internet, maybe someone can modify the configuration and succeed)

Before executing the solution, you need to delete the virtual environment with the original wrong path

  1. Delete the wrong virtual environment:conda remove -n env_name(环境名) --all
  2. Check whether the deletion is successful:conda env list

Guess you like

Origin blog.csdn.net/weixin_47872288/article/details/133064871