0

This is the error:

ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\\Users\\mathn\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\sklearn\\__check_build\\_check_build.cp37-win_amd64.pyd'
Check the permissions.

How do I fix the error and what are the permissions here? I have tried a lot of different methods and sci-learn package will not install

EDIT

After pip install --user sklearn the error is:

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\mathn\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\sklearn\\datasets\\tests\\data\\openml\\292\\api-v1-json-data-list-data_name-australian-limit-2-data_version-1-status-deactivated.json.gz'
rickhg12hs
  • 10,638
  • 6
  • 24
  • 42
Draco
  • 145
  • 10
  • I can't know for sure, but I'm guessing that a regular user is trying to install the packages to a system-level directory. How are you trying to install the packages? – rickhg12hs Jan 24 '21 at 02:47
  • @rickhg12hs I have tried many different methods such as installing using the python package, just installing with pip or installing from numpy and sci-py, but it never seems to work sadly – Draco Jan 24 '21 at 15:08
  • Does `pip install --user sklearn` work? If not, what is the entire error message? – rickhg12hs Jan 24 '21 at 17:35
  • No, it does not work, this is ther error message: `ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\mathn\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\sklearn\\datasets\\tests\\data\\openml\\292\\api-v1-json-data-list-data_name-australian-limit-2-data_version-1-status-deactivated.json.gz'` – Draco Jan 25 '21 at 14:06
  • Have a look at this [similar question](https://stackoverflow.com/questions/60756394/python-sklearn-installation-windows). Does the answer there help? – rickhg12hs Jan 26 '21 at 00:30
  • I have already looked at the question in question but windows gives back an error when I try to edit long paths enabled, and just installing does not work :( – Draco Jan 26 '21 at 16:17
  • Perhaps solving "error when I try to edit long paths enabled" is the appropriate next step? – rickhg12hs Jan 27 '21 at 08:45
  • 1
    Yes I retried using redegit and it worked, thanks for the help :) – Draco Jan 27 '21 at 19:18
  • Does this answer your question? [Python sklearn installation windows](https://stackoverflow.com/questions/60756394/python-sklearn-installation-windows) – rickhg12hs Jan 28 '21 at 22:41

0 Answers0