1

我无法安装 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

提前感谢您的帮助!

4

1 回答 1

2

无法在 Heroku 上安装 PySide 或 PyQt。

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

于 2014-08-27T05:29:03.683 回答