[英]running the simplest Google Appengine code but the log said python25.dll conflicts with this version of Python
我尝试了Google AppEngine中最简单的hello world应用程序我已经下载并设置了1)Python 2.7 2)Google Appengine启动器创建了一个应用程序
app.yaml
application: first
version: 1
runtime: php
api_version: 1
threadsafe: yes
handlers:
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
- url: .*
script: main.php
main.php
<?php
echo 'Hello world!';
我无法运行或部署应用程序。 日志说:
Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\appcfg.py", line 196, in <module>
run_file(__file__, globals())
File "C:\Program Files\Google\google_appengine\appcfg.py", line 192, in run_file
execfile(script_path, globals_)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 44, in <module>
import mimetypes
File "C:\Python27\lib\mimetypes.py", line 29, in <module> import urllib
File "C:\Python27\lib\urllib.py", line 26, in <module>import socket
File "C:\Python27\lib\socket.py", line 47, in <module>
import _socket
ImportError: Module use of python25.dll conflicts with this version of Python.
2013-12-20 00:26:34 (Process exited with code 1)
我重新安装了启动器,但是没有用。
Google App Engine启动器对我不起作用。 要部署我在命令提示符下使用以下命令
python appcfg.py -A YOUR_PROJECT_ID update <path to your project>/app.yaml
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.