'gunicorn' 未被 Heroku Local 识别为内部或外部命令
'gunicorn' is not recognized as an internal or external command with Heroku Local
我在按照教程中的 推送本地更改 部分尝试 运行 命令 heroku local
时:
Heroku Python Tutorial
我遇到错误:
[OKAY] Loaded ENV .env File as KEY=VALUE Format 18:51:47 web.1 |
'gunicorn' is not recognized as an internal or external command,
18:51:47 web.1 | operable program or batch file. [DONE] Killing all
processes with signal SIGINT 18:51:47 web.1 Exited with exit code
null
我尝试在线搜索,但没有找到任何有用的信息。
有人知道如何解决这个错误吗?
编辑:
我已经成功实现了教程前面的所有步骤,如果我在文件夹 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 app locally,我们可以看到如下信息:
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
.
我在按照教程中的 推送本地更改 部分尝试 运行 命令 heroku local
时:
Heroku Python Tutorial
我遇到错误:
[OKAY] Loaded ENV .env File as KEY=VALUE Format 18:51:47 web.1 | 'gunicorn' is not recognized as an internal or external command, 18:51:47 web.1 | operable program or batch file. [DONE] Killing all processes with signal SIGINT 18:51:47 web.1 Exited with exit code null
我尝试在线搜索,但没有找到任何有用的信息。 有人知道如何解决这个错误吗?
编辑:
我已经成功实现了教程前面的所有步骤,如果我在文件夹 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 app locally,我们可以看到如下信息:
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
.