【发布时间】:2018-02-15 16:41:01
【问题描述】:
我一直在尝试安装 PyQt,但无法通过以下错误。我已经阅读了一些建议我应该升级 PIP、setup_tools 和 ez_install 的帖子。我已经尝试了所有这些,但没有运气。有什么建议吗?
c:\Python27>pip install PyQt5_gpl-5.10.tar.gz
Processing c:\python27\pyqt5_gpl-5.10.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\program files (x86)\python36-32\lib\tokenize.py", line 452, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\JAME~1.KRK\\AppData\\Local\\Temp\\pip-0u8uht47-build\\setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\JAME~1.KRK\AppData\Local\Temp\pip-0u8uht47-build\
3.6 中也是这样:
c:\Program Files (x86)\Python36-32>pip install PyQt5_gpl-5.10.tar.gz
Processing c:\program files (x86)\python36-32\pyqt5_gpl-5.10.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\program files (x86)\python36-32\lib\tokenize.py", line 452, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\JAME~1.KRK\\AppData\\Local\\Temp\\pip-f9s0_6sp-build\\setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
C:\Users\JAM~1.KRK\AppData\Local\Temp\pip-f9s0_6sp-build\
【问题讨论】:
-
我遇到了完全相同的错误,但使用的是
pip3 install PyQt5。我更新了 pippip3 install --upgrade pip并再次尝试。更新后,我收到一个更详细的错误,让我知道问题与权限有关。更改为用户安装解决了我的问题pip3 install --user PyQt5。我正在运行 Ubuntu……所以我不确定这对 Windows 用户有多大帮助……
标签: python windows pyqt installation