Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
インタラクティブなpythonコマンドラインからMySQLdbをインポートできますが、Zopeのスクリプト(python)内からインポートしようとすると、Zopeでインポートエラーが発生します。何らかの理由で、Zopeがコマンドラインと同じ場所を探していない可能性がありますか?
Pythonのバージョンが2つあることが原因である可能性があり、sys.executableで確認できます。
あなたはそれを解決することができます