什么是“Python 解释器无”?

发布于 2024-08-13 21:01:07 字数 883 浏览 5 评论 0原文

我刚刚为 Google App Engines 创建了第一个应用程序,名为“Hello World”。这是 Google App Engine 入门教程的第一课。我在我的计算机上测试了它(我使用的是 Windows XP),它工作得很好 - 每当我使用网络浏览器(FireFox)打开一个新窗口时,我总是能够看到这个短语 Hello, world!!!,这证明它有效。

在创建它之前,我不知道如何将记事本文件另存为 .py 文件。我在这里提出了这个问题,并很快收到了答案。< /a>

然而,后来我收到了对我的问题的评论,内容如下:

“App Engine 不支持 Python 2.6。使用 Python 2.5 版本您将会有更好的运气。悲伤,但却是事实。”

所以我卸载了 Python 2.6.4 并安装了 Python 2.5.4。此外,我还卸载了 Google App Engine Launcher 并重新安装了它。当我安装它时,会弹出一个窗口,显示所有必要的先决条件 但是,当我添加现有的应用程序并想使用 App Engine Launcher 运行它时

,会弹出一条消息:

“Python解释器没有找到。 无法运行项目 E:\python\helloworld。请确认 您的首选项中的这些值,或者 采取适当的措施来修复它 (例如安装Python)。”

我尝试删除我的应用程序并重新创建它 - 但没有成功。我该怎么办?

I just created my first application for Google App Engines, which is called "Hello World". It was the first lesson from Google App Engines How-to-get-started tutorial. I tested it on my computer (I am using Windows XP), and it was working just fine - whenever I would open a new window with my web browser (FireFox), I would always be able to see this phrase Hello, world!!!, which was a proof that it worked.

Before I created it I didn't know how to save a notepad file as a .py file. I asked this question here and quickly received an answer.

However, later I received a comment to my question saying this:

"App Engine does not support Python
2.6. You will have better luck using a Python 2.5 release. Sad, but true."

So I uninstalled Python 2.6.4 and installed Python 2.5.4. Also I uninstalled the Google App Engine Launcher and re-installed it again. While I was installing it a window popped saying that all the necessary prerequisites on my computer were found.

However, when I added my existed application and wanted to run it with App Engine Launcher, a message popped saying this:

"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)."

I tried deleting my application and re-make it anew - to no avail. What should I do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

清风无影 2024-08-20 21:01:07

嗯,基本上就是说它找不到你刚刚安装的 python 解释器。

看起来您使用的是 Windows,因此请检查您的环境变量,特别是 PATH 和 PYTHONPATH,它们可能仍然指向以前的 2.6 安装文件夹。

Well, it is basically saying that it cannot find your just installed python interpreter.

It looks like you are on Windows so check your environment variables, particularly PATH and PYTHONPATH, they are probably still pointing to the previous 2.6 installation folder.

晨曦÷微暖 2024-08-20 21:01:07

您需要在 Eclipse 平台上的 Window->Preferences->Google->AppEngine 中设置 python 解释器(当然,我假设您使用的是 GAE Eclipse 插件,如果没有,忽略我的建议)。

You need to set the python interpreter in Window->Preferences->Google->AppEngine on your eclipse platform ( of course, I am assuming you are using the GAE Eclipse plugin, if not, disregard my suggestion).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文