我正在尝试使用以下方法在我的Windows 8 64位计算机上安装Scikit-Learn:
pip install -U scikit-learn
我收到以下错误,
F:\path\python-2.7.10.amd64>pip install -U scikit-learn
Collecting scikit-learn
Using cached scikit_learn-0.17.1-cp27-cp27m-win_amd64.whl
Installing collected packages: scikit-learn
Found existing installation: scikit-learn 0.16.1
Uninstalling scikit-learn-0.16.1:
Successfully uninstalled scikit-learn-0.16.1
Rolling back uninstall of scikit-learn
Exception:
Traceback (most recent call last):
File "f:\path\python-2.7.10.amd64\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "f:\path\python-2.7.10.amd64\lib\site-packages\pip\commands\install.py", line 317, in run
prefix=options.prefix_path,
File "f:\path\python-2.7.10.amd64\lib\site-packages\pip\req\req_set.py", line 748, in install
requirement.rollback_uninstall()
File "f:\path\python-2.7.10.amd64\lib\site-packages\pip\req\req_install.py", line 747, in rollback_uni
nstall
self.uninstalled.rollback()
File "f:\path\python-2.7.10.amd64\lib\site-packages\pip\req\req_uninstall.py", line 135, in rollback
renames(tmp_path, path)
File "f:\path\python-2.7.10.amd64\lib\site-packages\pip\utils\__init__.py", line 267, in renames
shutil.move(old, new)
File "f:\path\python-2.7.10.amd64\lib\shutil.py", line 302, in move
copy2(src, real_dst)
File "f:\path\python-2.7.10.amd64\lib\shutil.py", line 130, in copy2
copyfile(src, dst)
File "f:\path\python-2.7.10.amd64\lib\shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: 'f:\\path\\python-2.7.10.amd64\\lib\\site-packages\\sklearn\\__c
heck_build\\_check_build.pyd'
请注意: 在做了一些初步的谷歌搜索后,我发现我必须以管理员的身份启动CMD,我做了,但仍然遇到了这个错误。
请提出一些解决方案。
答案 0 :(得分:0)
在查看了多个答案后,我决定卸载Anaconda 并重新安装。这解决了这个问题。
我还找到了 Win-Python ,出于某种原因,我发现比Anaconda更方便。
谢谢。 :)