Is it possible to require PyQt from setuptools setup.py?

前端 未结 4 793
梦如初夏
梦如初夏 2020-12-03 08:13

I\'m building a small app that uses PyQt and tought it\'d be nice to declare that dependency in setup.py.

However, according to this blog (first hit on google for p

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-03 08:46

    While you can pip install pyqt5 thanks to the now available wheels (as suggested by @mfitzp), it cannot be required from setup.py via install_requires. The reason is that setuptools doesn't know how to install wheels which pip knows how to, and PyQT5 is only available as wheels on PyPI (there is no source distribution, i.e. no tar.gz file). See this email and that bug report for details.

提交回复
热议问题