本文介绍了升级到python 3.7后,google dev_appserver引发错误"python2:找不到命令"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
直到昨天,我已成功使用dev_appserver.py app.yaml --enable_console
进行开发.昨天,我尝试升级到python 3.7进行开发.升级似乎还可以,但是现在我收到以下错误消息.
Until yesterday I was successfully using the dev_appserver.py app.yaml --enable_console
for my development.Yesterday I attempted to upgrade to python 3.7 for my development.The upgrade seemed to be Ok, but now I get the following error message.
server:bones brian$ dev_appserver.py app.yaml --enable_console
ERROR: (dev_appserver) python2: command not found
app.yaml:
application: bones
version: 1
runtime: python37
entrypoint: gunicorn -b :$PORT main:app
api_version: 1
threadsafe: true
handlers:
- url: /static
static_dir: static
- url: /.*
script: main.app
我正在使用Mac OS X 10.11.6.
I am using Mac OS X 10.11.6.
为什么dev_appserver甚至在寻找python2?而我该如何解决呢?
Why is dev_appserver even looking for python2?And how can I fix this?
推荐答案
您似乎无法解决该问题:
It doesnt look like you can fix that:
这篇关于升级到python 3.7后,google dev_appserver引发错误"python2:找不到命令"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!