0

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

roudan
  • 3,082
  • 5
  • 31
  • 72
  • Did you try `sudo pip install -U scikit-learn` – Naveen Apr 04 '22 at 00:17
  • I did, the first time it has an error so I have to add --user – roudan Apr 04 '22 at 00:20
  • Would it be possible for you to go to the file and change the permission. – Naveen Apr 04 '22 at 00:24
  • I checked all permission are allowed for all users and system. – roudan Apr 04 '22 at 00:32
  • 1
    Windows allow to run cmd `As System Administrator` by mouse right click. Maybe this help. Or maybe Defender blocking file changing operations. Audit and security journal may clarify this problem. Windows is so Windows... `¯\_(ツ)_/¯` – rzlvmp Apr 04 '22 at 00:40
  • what do you mean? I am opening up anaconda command windows instead of cmd? – roudan Apr 04 '22 at 00:44
  • 1
    Then run anaconda as administrator. Or run cmd (command line shell) as Administrator and run anaconda using command line (is it `conda install blah blah` not sure?) – rzlvmp Apr 04 '22 at 00:46
  • I just log in anaconda as adminstrator and conda update scikit-learn and I got same error about permission on this file. Thanks for help – roudan Apr 04 '22 at 00:52
  • 1
    [Here](https://stackoverflow.com/questions/49181799/how-to-fix-conda-update-conda-permission-error) is the same solution as I recommended before, but maybe it will help to figure about real problem – rzlvmp Apr 04 '22 at 00:59
  • yes rzlvmp, this solution works: Run Anaconda Prompt using "Run as Administrator" option and then run the command -> conda update conda Then go back to starting Anaconda Prompt as usual and I believe everything should be fine. – roudan Apr 04 '22 at 01:37

1 Answers1

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.

EasyWay Coder
  • 331
  • 1
  • 7