【发布时间】:2016-07-27 19:33:42
【问题描述】:
我正在尝试使用命令pip install PyQt5 安装 PyQt5
但我得到了一个错误。
我使用 Python 3.5,Windows 10。
错误:
C:\WINDOWS\system32>pip install PyQt5
Collecting PyQt5
Using cached PyQt5-5.7-cp35-none-win_amd64.whl
Collecting sip (from PyQt5)
Using cached sip-4.18.1-cp35-none-win_amd64.whl
Installing collected packages: sip, PyQt5
Exception:
Traceback (most recent call last):
File "c:\anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "c:\anaconda3\lib\site-packages\pip\commands\install.py", line 317, in run
prefix=options.prefix_path,
File "c:\anaconda3\lib\site-packages\pip\req\req_set.py", line 742, in install
**kwargs
File "c:\anaconda3\lib\site-packages\pip\req\req_install.py", line 831, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "c:\anaconda3\lib\site-packages\pip\req\req_install.py", line 1032, in move_wheel_files
isolated=self.isolated,
File "c:\anaconda3\lib\site-packages\pip\wheel.py", line 346, in move_wheel_files
clobber(source, lib_dir, True)
File "c:\anaconda3\lib\site-packages\pip\wheel.py", line 324, in clobber
shutil.copyfile(srcfile, destfile)
File "c:\anaconda3\lib\shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'c:\\anaconda3\\Lib\\site-packages\\sip.pyd'
【问题讨论】:
-
您是否在计算机上以管理员用户身份登录?尝试以管理员身份运行 cmd 提示符,看看是否有帮助
-
@Yan 我用管理员
-
你见过这个问题吗? stackoverflow.com/questions/36809739/…
-
是的,使用 conda 没有解决。