我无法通过 requeriments.txt 安装 psutil,既无法使用 heroku run bash 命令登录,也无法使用 pip install psutil 命令。
日志很大,所以,我会把它“最重要”的部分放在:
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
Command "/app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-759b4csi/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-addox7ji-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-759b4csi/psutil/
有人可以帮我解决这个问题吗? 我正在使用 python 3.6.0 和 pip 9.0.1
请您参考如下方法:
我使用 pip freeze > requirements.txt 生成了一个新的需求,这个新文件被部署工具正确处理了。
