简体   繁体   中英

Issue Installing Scikit-learn

Disclaimer: I am very new to Python. I am trying to install scikit-learn using pip in windows powershell. Everytime I do this, I receive the following message:

''' ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: '''

More specifically, access is denied for vcomp140.dll.

I have tried many forums, but no luck.

Anything helps!

I guess you are trying to install scikit withoud admin rights? Try right click on powershell and select "run as administrator".

However, I would not use windows for development. Rather look into virtualization and run a linux VM through Virtual Box where you will be able to customize more and probably get better support. Also, you will not have to mess with the host system so anytime you update your project and that fails, you can roll back to a snapshot of your VM and not have to fix or reinstall the whole host system. VirtualBox + Ubuntu best solution. An alternative would be a WSL2 + Ubuntu. But I do not trust Microsoft, too many intermediate issues that will hold you back. I would go with the VBox + Ubuntu (or your preferred linux distro).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM