[英]OSX terminal giving the message “Python: can't open file '=': [Errno 2] No such file or directory” upon startup
[英]python: can't open file in macbook terminal - [Errno 2]!
在我的 macbook air terminal 我寫
python eggshell.py
但我收到了這個錯誤
python: 無法打開文件 'eggshell.py': [Errno 2] 沒有這樣的文件或目錄 s-user:/ user$
在我得到那個錯誤后,我嘗試了很多東西,比如准確地指定 eggshell.py 是:
python Users/myuser/Eggshell/eggshell.py
這樣做只會給我一個不同的 Errno 2 錯誤:
OSError: [Errno 2] 沒有這樣的文件或目錄:'modules/commands/macOS'
如果您有任何可以幫助我解決這個問題的東西,我將非常感激,謝謝。 PS我會附上eggshell.py所在位置的圖片
eggshell.py 實際上位於我文檔中的一個文件夾中,但它也出現在文檔中,所以我真的不知道為什么python eggshell.py
不起作用。
您必須位於 eggshell.py 所在的目錄中。 (使用cd
導航)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.