我正在通過DiveIntoPython.com工作,並且無法使導入工作。我已經在windows xp prof環境中安裝了ActiveState的Pythonwin。activestate pythonwin缺少導入模塊?
在網站上,有一個練習涉及'導入odbchelper'和odbchelper。 名
http://www.diveintopython.org/getting_to_know_python/testing_modules.html
當我運行它的互動,我得到:
>>> import odbchelper
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
ImportError: No module named odbchelper
>>> odbchelper.__name__
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
NameError: name 'odbchelper' is not defined
我猜要麼我沒有尋路設置正確或模塊不存在中引用其中一個文件夾,當我運行「sys.path」。有任何想法嗎?
在此先感謝
是啊我找到了類似的東西..你打敗了我。 – phill 2009-10-18 03:56:39