3
我想在Heroku應用程序中使用Python的spynner
模塊,但是我在使用Heroku時遇到了問題。我明顯在我的requirements.txt
中有這個,這很好,即使安裝lxml
沒有問題,但我遇到了PyQt4的問題。它不是在它的依賴上市,如果我手動把一份聲明中requirements.txt
像pyqt>=0.0.0
,它並嘗試安裝它,但我總是最後出現以下錯誤:在Heroku上安裝Spynner
Downloading/unpacking pyqt>=0.0.0 (from -r requirements.txt (line 12))
Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/htt
p%3A%2F%2Fwww.riverbankcomputing.com%2Fstatic%2FDownloads%2FPyQt4%2FPyQt-x11-gpl
-4.9.4.tar.gz
Running setup.py egg_info for package pyqt
Traceback (most recent call last):
File "<string>", line 14, in <module>
IOError: [Errno 2] No such file or directory: '/tmp/build_11i9jfrncqa
t2/.heroku/venv/build/pyqt/setup.py'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
IOError: [Errno 2] No such file or directory: '/tmp/build_11i9jfrncqat2/.
heroku/venv/build/pyqt/setup.py'
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/build_1
1i9jfrncqat2/.heroku/venv/build/pyqt
Storing complete log in /app/.pip/pip.log
! Heroku push rejected, failed to compile Python app
不管我做什麼,即使嘗試使用帶有一些PyQt4發行版的手動heroku run easy_install xxx
,它也不會起作用。有沒有人對如何讓spynner運行有任何建議?
這是正確的,這正是問題所在,因爲據我所知,您需要使用'pip'將其安裝在Heroku上。 – jdotjdot