0
當試圖推一個flask-mysql python應用程序。是否有條件地告訴flask-mysql擴展使用distribute> = 0.6.28?我將它包含在需求文件中並安裝,但仍然沒有骰子,當我打開requirements.txt中的flask-mysql行時,它仍然嘗試着爲0.6.27。無法推送到heroku,分發(> = 0.6.28)不可用
Downloading/unpacking MySQL-python (from Flask-MySQL==1.2->-r requirements.txt (line 3))
Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FM%2FMySQL-python%2FMySQL-python-1.2.4c1.zip
Running setup.py egg_info for package MySQL-python
The required version of distribute (>=0.6.28) is not available,
and can't be installed while this script is running. Please
install a more recent version first, using
'easy_install -U distribute'.
(Currently using distribute 0.6.27 (/tmp/build_1w0z6sg73qbm/.heroku/venv/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg))
Complete output from command python setup.py egg_info:
The required version of distribute (>=0.6.28) is not available,
and can't be installed while this script is running. Please
install a more recent version first, using
'easy_install -U distribute'.
(Currently using distribute 0.6.27 (/tmp/build_1w0z6sg73qbm/.heroku/venv/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg))
----------------------------------------
Command python setup.py egg_info failed with error code 2 in /tmp/build_1w0z6sg73qbm/.heroku/venv/build/MySQL-python
Storing complete log in /app/.pip/pip.log
! Heroku push rejected, failed to compile Python app
您可以嘗試在您的需求文件中指定一箇舊版本的MySQL-Python,然後查看它是否會爲您分配相應的較低版本要求。 – Amber
在我的要求中,我擁有的是flask-mysql。然後它會嘗試下載mysql-python。我將如何改變這一點? –
那麼,你可以嘗試早期版本的'flask-mysql'。 – Amber