我想用PyQt5来形容。尝试从可用的包安装软件包后,出现一个错误:“安装软件包失败:安装包PyQt5时发生错误。”
完整的日志在这里:
------------------------------------------------------------
C:\Program Files (x86)\JetBrains\PyCharm 3.0.1\helpers\packaging_tool.py run on 02/05/14 16:13:23
Downloading/unpacking PyQt5
Getting page https://pypi.python.org/simple/PyQt5/
URLs to search for versions for PyQt5:
* https://pypi.python.org/simple/PyQt5/
Analyzing links from page https://pypi.python.org/simple/PyQt5/
Could not find any downloads that satisfy the requirement PyQt5
No distributions at all found for PyQt5
Exception information:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\pip-1.3.1-py2.7.egg\pip\basecommand.py", line 139, in main
status = self.run(options, args)
File "C:\Python27\lib\site-packages\pip-1.3.1-py2.7.egg\pip\commands\install.py", line 266, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "C:\Python27\lib\site-packages\pip-1.3.1-py2.7.egg\pip\req.py", line 1026, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "C:\Python27\lib\site-packages\pip-1.3.1-py2.7.egg\pip\index.py", line 171, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for PyQt5我该怎么办?
我所做的就是:
PyQt5-5.2-gpl-Py3.3-Qt5.2.0-x64.exe我也不知道如何使用PyQt。
你能提供更多的信息吗?
发布于 2014-02-05 12:51:05
AFAIK,您不能从PyPI安装PyQt5 4/PyQt5 5。你必须单独安装它。
如果您看到这链接,您可以看到PyPI上没有列出的PyQt5包(PyQt4也是这样)。因此,您需要将安装程序与这里分开下载并安装。
这就是
DistributionNotFound:没有为PyQt5找到任何发行版
指的是。
更新:您也很可能需要以同样的方式安装sip,下面是方法:https://askubuntu.com/a/666336/12214
发布于 2018-06-22 07:44:45
FYI,用pip安装QtPy5在3.6.5中工作。根据https://www.riverbankcomputing.com/software/sip/download的说法,甚至3.5甚至更高。
https://stackoverflow.com/questions/21577723
复制相似问题