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
精彩评论