iMac-Mark:~ Mark$ python3
Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import myfile
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'myfile'
我是Python新手,一般編程。我讀了一些關於sys.path
,__PATH__
但我什麼都不懂。Python3。 ImportError:沒有名爲'myfile'的模塊
而且你實際做有一個'myfile.py'模塊? –
檢查工作目錄中是否有'myfile.py'。 – falsetru
@MartijnPieters是的。 – Mark