"gunicorn"不被识别为Heroku本地的内部或外部命令



按照教程中的Push Local Changes一节操作时,我正在尝试运行命令heroku local:Heroku Python教程

我得到错误:

[OKAY]加载ENV.ENV文件为KEY=VALUE格式18:51:47 web.1|"gunicorn"未被识别为内部或外部命令,18:51:47 web.1|可操作程序或批处理文件。[完成]杀光所有人处理与信号SIGINT 18:51:47 web。1退出与退出代码空

我试着在网上搜索,但没有找到任何有用的东西。有人知道如何解决这个错误吗?

EDIT:我已经成功地实现了本教程前面的所有步骤,如果我在文件夹C:python-getting-started中运行CMD并运行命令pip list,则依赖项为:

Package         Version
--------------- ---------
asgiref         3.2.10
certifi         2020.6.20
chardet         3.0.4
dj-database-url 0.5.0
Django          3.0.8
django-heroku   0.3.1
gunicorn        20.0.4
idna            2.10
pip             20.2
psycopg2        2.8.5
pytz            2020.1
requests        2.24.0
setuptools      41.2.0
sqlparse        0.3.1
urllib3         1.25.10
whitenoise      5.1.0

感谢

在本地查看前一步Run应用程序,我们可以看到以下信息:

If you’re on Microsoft Windows system, run this:
heroku local web -f Procfile.windows
...
Just like Heroku, heroku local examines the Procfile to determine what to run.

也就是说,Windows需要-f Procfile.windows标志
请尝试运行heroku local -f Procfile.windows

最新更新