posted on 2023-05-21 17:01 read(1112) comment(0) like(8) collect(1)
When debugging the code of a model today, you need to create a new anaconda environment, and the newly created environment was previously in the envs under the anaconda installation directory, but today it is created in C:\Users\xxx.conda\envs \, as shown in the figure below:
This is very uncomfortable. First of all, not to mention taking up system disk resources, it is also in two locations with the previous environment, which is not convenient for management.
The judgment should be that the envs path under the anaconda installation directory was not found when it was created.
There is a .condarc file under C:\Users\username, open it, and add the following content at the end of it:
envs_dirs:
- E://Env//anaconda//envs
This path is set according to your own situation. My anaconda is installed under E:\Env\anaconda, so the storage location of the environment is the path above.
Pay attention to change the dividing line of the path to double slashes
Create the environment again at this time, and find that it is still in the directory of the C drive, but through
conda config --show
See that the configuration has taken effect, as shown in the figure below:
You need to add an execution permission to the envs file:
right-click envs----select attribute
security----edit----Users----select all Users permissions —OK
At this point, the permissions have been added, and the path of the created environment has also been added. After re-creating the environment, it is found that it is no longer in the C drive, but in the installation directory of our custom anaconda. As shown in the figure below:
So far the problem has been solved.
https://blog.csdn.net/QH2107/article/details/126246310
Author:mmm
link:http://www.pythonblackhole.com/blog/article/25284/4e42404572bfae878897/
source:python black hole net
Please indicate the source for any form of reprinting. If any infringement is discovered, it will be held legally responsible.
name:
Comment content: (supports up to 255 characters)
Copyright © 2018-2021 python black hole network All Rights Reserved All rights reserved, and all rights reserved.京ICP备18063182号-7
For complaints and reports, and advertising cooperation, please contact vgs_info@163.com or QQ3083709327
Disclaimer: All articles on the website are uploaded by users and are only for readers' learning and communication use, and commercial use is prohibited. If the article involves pornography, reactionary, infringement and other illegal information, please report it to us and we will delete it immediately after verification!