我在 mac 上运行 python 3.3,每当我在终端窗口中运行 .py 文件时使用以下命令:
cd '/Users/Jacob/Desktop/'
&& '/usr/bin/env pythonw' '/Users/Jacob/Desktop/PygLatin.py'
&& echo Exit status: $? && exit 1
我收到以下错误:
bash: /usr/bin/env pythonw: No such file or directory
我试过使用
#!/usr/bin/env pythonw
在第一行,因为那是 Python 启动器在首选项中的解释器。似乎 Python 启动器正在尝试打开
cd '' && '/sw/bin/pythonw' '<your script here>' && echo Exit status: $? && exit 1
作为翻译。我该如何解决这个错误?