在heroku上部署python应用程序时出错 错误:命令出错,退出状态为1: 命令:/app/.heroku/python/bin/python-c'import sys,setuptools,tokenize;sys.argv[0]=“””/tmp/pip-req-build-fy6uvz1h/setup.py“”__文件\ \='''''''/tmp/pip-req-build-fy6uvz1h/setup.py''';f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,uuuu文件,“'exec'))'egg\u info--egg base/tmp/pip-pip-egg-info-blc65hbn cwd:/tmp/pip-req-build-fy6uvz1h/ 完整输出(5行): 回溯(最近一次呼叫最后一次): 文件“”,第1行,在 打开文件“/app/.heroku/python/lib/python3.6/tokenize.py”,第452行 缓冲区=\u内置\u打开(文件名'rb') FileNotFoundError:[Errno 2]没有这样的文件或目录:'/tmp/pip-req-build-fy6uvz1h/setup.py' ---------------------------------------- 错误:命令出错,退出状态为1:python setup.py egg_info检查日志以获得完整的命令输出。

在heroku上部署python应用程序时出错 错误:命令出错,退出状态为1: 命令:/app/.heroku/python/bin/python-c'import sys,setuptools,tokenize;sys.argv[0]=“””/tmp/pip-req-build-fy6uvz1h/setup.py“”__文件\ \='''''''/tmp/pip-req-build-fy6uvz1h/setup.py''';f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,uuuu文件,“'exec'))'egg\u info--egg base/tmp/pip-pip-egg-info-blc65hbn cwd:/tmp/pip-req-build-fy6uvz1h/ 完整输出(5行): 回溯(最近一次呼叫最后一次): 文件“”,第1行,在 打开文件“/app/.heroku/python/lib/python3.6/tokenize.py”,第452行 缓冲区=\u内置\u打开(文件名'rb') FileNotFoundError:[Errno 2]没有这样的文件或目录:'/tmp/pip-req-build-fy6uvz1h/setup.py' ---------------------------------------- 错误:命令出错,退出状态为1:python setup.py egg_info检查日志以获得完整的命令输出。,python,github,heroku,Python,Github,Heroku,!!推送被拒绝,未能编译Python应用程序。 ! 推送失败您能在这里发布dyno的错误日志吗?你刚刚发布了python错误,但如果我理解正确的话,没有发布服务器日志。我使用github将我的应用部署到heroku,这是你在部署时得到的唯一东西,我得到了这个错误 ERROR: Command errored out with exit status 1: command: /app/.heroku/python/bin/python -c 'import sys, se

!!推送被拒绝,未能编译Python应用程序。
! 推送失败

您能在这里发布dyno的错误日志吗?你刚刚发布了python错误,但如果我理解正确的话,没有发布服务器日志。我使用github将我的应用部署到heroku,这是你在部署时得到的唯一东西,我得到了这个错误
 ERROR: Command errored out with exit status 1:
        command: /app/.heroku/python/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-fy6uvz1h/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-fy6uvz1h/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-blc65hbn
            cwd: /tmp/pip-req-build-fy6uvz1h/
       Complete output (5 lines):
       Traceback (most recent call last):
         File "<string>", line 1, in <module>
         File "/app/.heroku/python/lib/python3.6/tokenize.py", line 452, in open
           buffer = _builtin_open(filename, 'rb')
       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-fy6uvz1h/setup.py'
       ----------------------------------------
   ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.