在Heroku中安装python模块psutil

在Heroku中安装python模块psutil,python,heroku,Python,Heroku,我无法通过requerients.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 "

我无法通过requerients.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
来生成一个新的需求,部署工具正确地处理了这个新文件

psutil文档说“在UNIX上,这需要安装一个C编译器(例如gcc)。”您需要在Heroku实例上安装gcc来满足这一要求。我该怎么做?我不确定,因为我没有使用Heroku。希望其他人能来解释。。。但是谷歌搜索“在heroku上安装gcc”会得到一些结果,包括这篇文章:好吧,也许我需要的是使用已经编译好的psutils版本。这就是我在链接中所理解的。