【问题标题】:Possible to install PySide or PyQt on Heroku?可以在 Heroku 上安装 PySide 或 PyQt 吗?
【发布时间】:2014-10-19 00:45:29
【问题描述】:

我无法安装 PySide,也不知道如何在 Heroku 上安装 PyQt。

我需要 PySide 才能使用 Ghost.py。

这是我在 requirements.txt 中包含的内容:

Ghost.py==0.1b3    
PySide==1.2.2

这是推送到 Heroku 时的错误:

Python architecture is 64bit

       error: Failed to find cmake. Please specify the path to cmake with --cmake parameter.

       ----------------------------------------
       Cleaning up...
       Command /app/.heroku/python/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_u30455/PySide/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-LqhYm6-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_u30455/PySide
       Storing debug log for failure in /app/.pip/pip.log

 !     Push rejected, failed to compile Python app

提前感谢您的帮助!

【问题讨论】:

  • 由于 Heroku 不运行 X11 服务器,因此您不太可能在其上安装 (Py)QT。

标签: python heroku pyqt pyside ghost.py


【解决方案1】:

无法在 Heroku 上安装 PySide 或 PyQt。

我的解决方法是使用 PhantomJS (http://phantomjs.org/) 和 BeautifulSoup。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-09-24
    • 2014-01-15
    • 2017-05-19
    • 2023-03-27
    • 2018-07-08
    • 1970-01-01
    • 2014-04-27
    相关资源
    最近更新 更多