'Errno 13 Permission denied libssl-1_1-x64.dll when installing various library

I am using miniconda, recently everytime I use conda update or conda install a library, I got a same error:

[Errno 13] Permission denied: 'C:\Users\test\miniconda3\envs\dash_tf\Library\bin\libssl-1_1-x64.dll' ()

not sure why?

For example, I tried to update scikit-learning by doing conda update scikit-learn

done
ERROR conda.core.link:_execute(699): An error occurred while installing package 'defaults::openssl-1.1.1n-h2bbff1b_0'.
Rolling back transaction: done

[Errno 13] Permission denied: 'C:\\Users\\test\\miniconda3\\envs\\dash_tf\\Library\\bin\\libssl-1_1-x64.dll'
()

to fix this, I have to use pip install

pip install -U scikit-learn  --user

any suggestion on this error? Thanks



Solution 1:[1]

Well, since you all know that the C drive is the Administrator Drive, no file can be edited or made in it with an automation process. What I'm trying to say is that you can't edit or make new files in the C drive through Python. You can try the Run file as administrator option but if that is also not sufficient then you have to change your location.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 EasyWay Coder