我刚刚为 Google App Engines 创建了我的第一个应用程序,它被称为“Hello World”。这是 Google App Engines 入门教程的第一课。我在我的电脑上测试过它(我使用的是 Windows XP),它工作得很好——每当我用我的网络浏览器 (FireFox) 打开一个新窗口时,我总是能够看到这个短语 Hello, world!!!
,这是它有效的证明。
在创建记事本文件之前,我不知道如何将记事本文件保存为 .py
文件。我问这个question here and quickly received an answer.
但是,后来我收到了一条对我的问题的评论:
"App Engine does not support Python 2.6. You will have better luck using a Python 2.5 release. Sad, but true."
所以我卸载了 Python 2.6.4 并安装了 Python 2.5.4。我还卸载了 Google App Engine Launcher 并重新安装了它。当我安装它时,弹出一个窗口说我的电脑上所有必要的先决条件都已找到。
但是,当我添加我现有的应用程序并想使用 App Engine Launcher 运行它时,弹出一条消息说:
"Python interpreter None not found. Cannot run project E:\python\helloworld. Please confirm these values in your Preferences, or take an appropriate measure to fix it (e.g. install Python)."
我尝试删除我的应用程序并重新创建它 - 但无济于事。我该怎么办?
最佳答案
嗯,基本上就是说它找不到你刚刚安装的 python 解释器。
看起来你在 Windows 上,所以检查你的环境变量,特别是 PATH 和 PYTHONPATH,它们可能仍然指向以前的 2.6 安装文件夹。
关于python - 什么是 "Python interpreter None"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1867657/