【发布时间】:2011-06-05 10:30:55
【问题描述】:
我正在构建一个使用 PyQt 的小型应用程序,并且认为在 setup.py 中声明该依赖项会很好。
然而,根据this blog(第一次点击谷歌的pyqt setuptools)说它不能完成,最后一段here也没有尝试这样做。
更新:
setup.py 中明显的 install_requires = [ 'pyqt >= 0.7' ] 给了我:
D:\3rd\BuildBotIcon\my-buildboticon\python>setup.py test
running test
install_dir .
Checking .pth file support in .
C:\Python26-32\pythonw.exe -E -c pass
Searching for pyqt>=4.7
Reading http://pypi.python.org/simple/pyqt/
Reading http://www.riverbankcomputing.com/software/pyqt/
Reading http://www.riverbankcomputing.com/software/pyqt/download
No local packages or download links found for pyqt>=4.7
error: Could not find suitable distribution for Requirement.parse('pyqt>=4.7')
【问题讨论】:
-
@singularity:那个页面没有用,setup.py 没有任何可下载的东西可以在那里使用,或者在链接到的页面中
-
有人知道 Python 3 和 PyQt 5 是否仍然如此吗?
标签: python pyqt setuptools distutils