如何修复命令“ python setup.py egg_info”失败?

时间:2019-03-02 17:01:04

标签: python heroku

当我尝试推动heroku时,出现此错误:

remote:            This backport is for Python 2.7 only.
remote:            
remote:            ----------------------------------------
remote:        Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-7w4exzcs/functools32/
remote:  !     Push rejected, failed to compile Python app.
remote: 
remote:  !     Push failed

1 个答案:

答案 0 :(得分:2)

我认为问题是您的Python版本,因为要推到heroku它将是最新版本。请检查您的python版本并安装最新版本3.6或3.7