无法在Heroku中推送Django Python项目

时间:2018-08-30 01:38:52

标签: python mysql django heroku

我尝试将Python项目(Python 3.7.0)推送到Heroku。这是一个与mysql数据库链接的django项目。但是它不断显示错误:ModuleNotFoundError: No module named 'ConfigParser'。 3.7.0版本真的与Heroku不兼容吗?我尝试在命令中pip install ConfigParser,但仍然无法正常工作。有人遇到这个问题吗?这是在Heroku中推送项目时的错误:

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-1fjjz1dy/MySQL-python/setup.py", line 13, in <module>
remote:                from setup_posix import get_config
remote:              File "/tmp/pip-build-1fjjz1dy/MySQL-python/setup_posix.py", line 2, in <module>
remote:                from ConfigParser import SafeConfigParser
remote:            ModuleNotFoundError: No module named 'ConfigParser'
remote:
remote:            ----------------------------------------
remote:        Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-1fjjz1dy/MySQL-python/
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to fathomless-citadel-89649.

我检查了另一个解决方案并安装了mysqlclients,但仍然无法推送。谁能帮我吗?

0 个答案:

没有答案