尝试部署 python 应用程序时,Heroku 部署开始返回此错误:
\n-----> Installing requirements with pip\n Collecting amqp==2.6.1\n Downloading amqp-2.6.1-py2.py3-none-any.whl (48 kB)\n Collecting anyjson==0.3.3\n Downloading anyjson-0.3.3.tar.gz (8.3 kB)\n Preparing metadata (setup.py): started\n Preparing metadata (setup.py): finished with status 'error'\n error: subprocess-exited-with-error\n \n \xc3\x97 python setup.py egg_info did not run successfully.\n \xe2\x94\x82 exit code: 1\n \xe2\x95\xb0\xe2\x94\x80> [1 lines of output]\n error in anyjson setup command: use_2to3 is invalid.\n [end of output]\n \n note: This error originates from a subprocess, and is likely not a problem with pip.\n …Run Code Online (Sandbox Code Playgroud)