简体   繁体   English

安装 scikit-learn 库时出错

[英]Error when installing scikit-learn library

I am trying to install scikit-learn using pip but every time I am getting error:我正在尝试使用 pip 安装 scikit-learn 但每次我收到错误:

ERROR: Could not install packages due to an OSError:
[WinError 5] Access is denied: 'C:\\Users\\aa-minhaj\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\sklearn\\.libs\\vcomp140.dll'
Check the permissions.

I have tried many variations, including pip3.我尝试了很多变体,包括 pip3。 Also, I am not using anaconda distribution.另外,我没有使用 anaconda 分布。

I checked other answers but most of them are related to Environment error, but this is an OS Error apparently.我检查了其他答案,但大多数都与环境错误有关,但这显然是一个操作系统错误。

Found a solution that didn't required any admin previledges.找到了一个不需要任何管理员权限的解决方案。 It was as simple as to create a new virtual environment in which I installed scikit-learn library, ofcourse after re-installing my jupyterlab in the new virtual environment.这就像创建一个新的虚拟环境一样简单,我在其中安装了 scikit-learn 库,当然在新的虚拟环境中重新安装了我的 jupyterlab 之后。 Closing the issue now.现在关闭问题。 Thanks谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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