可以在Heroku上安装PySide或PyQt吗?

1 投票
1 回答
1352 浏览
提问于 2025-04-18 18:28

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

谢谢你们提前的帮助!

1 个回答

2

在Heroku上无法安装PySide或PyQt。

我找到的解决办法是使用PhantomJS(http://phantomjs.org/)配合BeautifulSoup。

撰写回答