我是python的新手,試圖通過this教程感受python保險絲。我用pip安裝了pythonfuse。我通過下載dmg並在os x上安裝來安裝os x fuse。當我從教程運行此行代碼from fuse import FUSE, FuseOSError, Operations
我看到這一點:如何在導入包時調試「無法導入」錯誤
akh2103$ python myfuse.py
Traceback (most recent call last):
File "myfuse.py", line 10, in <module>
from fuse import FUSE, FuseOSError, Operations
ImportError: cannot import name FUSE
現在看來似乎找不到保險絲包,無法找到蟒蛇保險絲包或找不到FUSE,包中的FuseEurror和操作方法。哪一個?當我輸入import fuse
Python去尋找熔絲包的時候?我習慣於在java中使用類路徑:是否有python等價物?我對python很陌生。我如何開始調試。
的http://文檔。 python.org/2/tutorial/modules.html#the-module-search-path – freakish