Python Eclipse 和 Google App Engine:ImportError:没有名为 _sysconfigdata_nd 的模块;无法识别的参数:--high_replication

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15608236/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-18 20:32:42  来源:igfitidea点击:

Eclipse and Google App Engine: ImportError: No module named _sysconfigdata_nd; unrecognized arguments: --high_replication

pythoneclipsegoogle-app-engine

提问by Randy Tang

Just upgraded to Ubuntu 13.04 and Eclipse complained with the following 2 errors:

刚刚升级到 Ubuntu 13.04,Eclipse 抱怨以下 2 个错误:

1. ImportError: No module named _sysconfigdata_nd

ERROR    2013-03-25 07:26:43,559 http_runtime.py:221] unexpected port response from runtime ['']; exiting the development server
ERROR    2013-03-25 07:26:43,561 server.py:576] Request to '/_ah/warmup' failed

2. dev_appserver.py: error: unrecognized arguments: --high_replication

I've never encountered the first one. And for the second, I used to run google app engine applications by setting the --high_replicationargument and it worked well. Why all the sudden, these two didn't work? Thanks in advance.

我从来没有遇到过第一个。第二,我曾经通过设置--high_replication参数来运行谷歌应用引擎应用程序,它运行良好。为什么突然之间,这两个不起作用?提前致谢。

采纳答案by Jon Vaughan

The "No module named _sysconfigdata_nd" is a bug in the Ubuntu package.

“没有名为 _sysconfigdata_nd 的模块”是Ubuntu 包中的一个错误

You can create a softlink as a workaround:

您可以创建软链接作为解决方法:

sudo ln -s /usr/lib/python2.7/plat-*/_sysconfigdata_nd.py /usr/lib/python2.7/

回答by Tadeck

Depending on different conditions, updating virtualenvmay actually be a better idea instead of this walkaround, as mentioned on linked bug reports. To update virtualenvyou could use the following command:

根据不同的条件,更新virtualenv实际上可能是一个更好的主意,而不是像链接的错误报告中提到的这种解决方法。要更新,您可以使用以下命令:virtualenv

sudo pip install --upgrade virtualenv