推送到Heroku时如何解决Flask MySQL错误?

时间:2019-03-05 20:51:57

标签: python mysql flask

我正在尝试在Heroku上部署我的Flask应用程序,当我推向Master时遇到了一些问题。我在Windows上使用Python 2.7运行。我认为MySQL Flask的依赖存在问题,但是我不确定该怎么做。

有人知道如何解决此问题并开始运行吗?非常沮丧。

remote:          Downloading https://files.pythonhosted.org/packages/fe/61/521257e46b9cc1345ec574670446b3a31fd35eb74db2b37c01fdc1cd741c/mysql_connector_python-8.0.5-py2.py3-none-any.whl (249kB)
remote:        Collecting MySQL-python==1.2.5 (from -r /tmp/build_5f0535031fd60ed1954d14f2229425d2/requirements.txt (line 29))
remote:          Downloading https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip (108kB)
remote:            Complete output from command python setup.py egg_info:
remote:            Traceback (most recent call last):
remote:              File "<string>", line 1, in <module>
remote:              File "/tmp/pip-build-jjq_wu6o/MySQL-python/setup.py", line 13, in <module>
remote:                from setup_posix import get_config
remote:              File "/tmp/pip-build-jjq_wu6o/MySQL-python/setup_posix.py", line 2, in <module>
remote:                from ConfigParser import SafeConfigParser
remote:            ModuleNotFoundError: No module named 'ConfigParser'

0 个答案:

没有答案