pip安装-PermissionError:[Errno 13]权限被拒绝 [英] pip install - PermissionError: [Errno 13] Permission denied

查看:2195
本文介绍了pip安装-PermissionError:[Errno 13]权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • Windows 8.1
  • Python 3.5
  • Anaconda

当我执行pip install sklearn --upgrade时,出现以下错误:

When I do pip install sklearn --upgrade, I got the following error:

Exception:
Traceback (most recent call last):
  File "d:\anaconda3\lib\site-packages\pip\basecommand.py", line 209, in main
    status = self.run(options, args)
  File "d:\anaconda3\lib\site-packages\pip\commands\install.py", line 317, in run
    prefix=options.prefix_path,
  File "d:\anaconda3\lib\site-packages\pip\req\req_set.py", line 732, in install
    **kwargs
  File "d:\anaconda3\lib\site-packages\pip\req\req_install.py", line 835, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "d:\anaconda3\lib\site-packages\pip\req\req_install.py", line 1030, in move_wheel_files
    isolated=self.isolated,
  File "d:\anaconda3\lib\site-packages\pip\wheel.py", line 344, in move_wheel_files
    clobber(source, lib_dir, True)
  File "d:\anaconda3\lib\site-packages\pip\wheel.py", line 322, in clobber
    shutil.copyfile(srcfile, destfile)
  File "d:\anaconda3\lib\shutil.py", line 115, in copyfile
    with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'd:\\anaconda3\\Lib\\site-packages\\sklearn\\utils\\m
urmurhash.cp35-win_amd64.pyd'

命令提示符以管理员身份运行,因此我具有权限.

The command prompt is run as an Administrator, so I have the permission.

我该怎么办?任何建议,将不胜感激.

What should I do? Any suggestion would be appreciated.

推荐答案

您是否安装了其依赖项,例如 numpy scipy ?检查一下,然后我们将继续进行.

Have you installed its dependencies like numpy and scipy? Check it out and then we will proceed further.

最终解决方案: 像conda install scikit-learn=_version_

Final Solution: try conda like conda install scikit-learn=_version_

这篇关于pip安装-PermissionError:[Errno 13]权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆