开发者

ImportError: No module named MySQLdb in Zope

I can import MySQLdb from the interactive python command line but Zope gives me an import error when I try it fr开发者_开发技巧om within a script (python) in Zope. Could Zope be not looking in the same places as the command line for some reason?


It could be because of you have 2 versions of python, you could check with sys.executable

You could solve that by

  • changing Zope's python running environment to be match with your account environment
  • install MySQLdb for python version used by Zope
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜