[英]python : cant open file 'hw.py': [Errno 2] No such file or directory
here my output looks like, please see this image as I m new in this programing world, I m trying to do some python code, but it seems like my raspberry pi doesn't recognise my folder here it looks like python : cant open file 'hw.py': [Errno 2] No such file or directory my path and folder is existed, and I save the file by .py extension still it shows not found , please help me guys.... 在这里,我的输出看起来像,是我在这个编程世界中的新角色,请尝试查看此图像 ,我正在尝试执行一些python代码,但似乎我的raspberry pi无法识别我的文件夹,在这里它看起来像python:无法打开文件'hw.py':[Errno 2]我的路径和文件夹不存在这样的文件或目录,并且我以.py扩展名保存了文件,但仍未找到,请帮助我。
pi@raspberrypi :~/codes $ ls
hello hw.py
pi@raspberrypi :~/codes $ python hw.py
python : cant open file 'hw.py': [Errno 2] No such file or directory
hw.py file contains:- print "hello world" hw.py文件包含:-打印“ hello world”
IT CLEARLY SHOWS MY FILE "HW.PY" IS IN THAT FOLDER, BUT STILL RASPBERRY PI DOESN'TRECOGNIZING IT ? 它清楚地显示了我的文件“ HW.PY”在那个文件夹中,但是仍然是RASPBERRY PI无法识别它吗? HELP ME GUYS 帮助我
好的,因此您需要将文件保存在与IDE相同的目录中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.