我正在尝试使用该命令安装PyQt5 pip install 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'
Run Code Online (Sandbox Code Playgroud)
小智 23
使用不同的Windows(8.2)和不同的PyQt(4-4),我遇到了同样的问题.
对我有用的是:运行任务管理器,看看是否有任何Python任务在运行.如果有(有我)杀了他们,因为他们(可能)锁定了sip.pyd文件.然后pip install再次运行 (在我的情况下"成功安装").
小智 5
Python3.6 Win10 x64 与 Anaconda。正如@user6904670所说,同样的问题,
杀死正在运行的 python.exe
并 关闭Anaconda.exe等相关进程
| 归档时间: |
|
| 查看次数: |
7949 次 |
| 最近记录: |