[英]Running python programmes for the command line
我正在尝试从 MacOS 上的命令行运行一个名为 helloWorld.py 的 python 程序。
我正在输入 bash:
Ryans-MacBook-Air:~ ryanunderwood$ python3 helloWorld.py
但我得到以下信息:
/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'helloWorld.py': [Errno 2] No such file or directory
目录中肯定有一个同名的文件。 为什么这个程序没有运行?
尝试./helloworld.py
或python3. /hello World.py
python3. /hello World.py
并确保您拥有正确的权限
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.