开发者

ImportError: No module named MySQLdb in Zope

开发者 https://www.devze.com 2022-12-26 03:43 出处:网络
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

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

精彩评论

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