Conda new environment error solution: NotWritableError: The current user does not have write permissions to a required path.

Recently, due to deleting the previous anaconda and then reinstalling a new one, the solutions to this error report on the Internet are basically the same. Here is a separate write about my solution process.

  The first error is as follows:

  Online error analysis: anaconda3prompt was installed with administrator root privileges, which causes an error to be reported if root is not used now. We can open everything and enter the main directory folder of anaconda3 to modify the permissions.

Wait for its permissions to be modified. After a few minutes, it was found that the modification was completed.

I found that the problem was still not solved. It turned out that the path of the e disk and d disk had not been modified in a certain setting text, so I immediately searched for relevant solutions on the Internet to find the path file.

The final solution is as follows: modify the default path of the conda virtual environment. condarc text file.

 refer to this

How to modify the default path of the conda virtual environment - Development Technology - Yisu Cloud (yisu.com)

The solutions found are as follows. We open the anacondapowershell and enter conda info to get the following picture

I found that there are some paths that do not exist in my computer. For example, the disk name of my computer does not have a D disk. This is the name before the computer was formatted, so what needs to be done now is to replace this D disk with the correct current E disk. Just the path.

This path changes the file name to .condarc, and we can use the search application everything to search for it.

 Next open the .condarc file for modification.

Change the D drive path to the E drive path.

Finally, opening anaconda3 will no longer report an error, and it is found that the new environment can be created, and the problem has been properly solved so far.

 

Guess you like

Origin blog.csdn.net/blink182007/article/details/127293134