简体   繁体   English

python:无法打开文件'hw.py':[Errno 2]没有这样的文件或目录

[英]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.

相关问题 找不到 >python scraper.py - 无法打开文件“scraper.py”:[Errno 2] 没有这样的文件或目录 - Cant find >python scraper.py - can't open file 'scraper.py': [Errno 2] No such file or directory 无法打开.py 文件:“[Errno 2] 没有这样的文件或目录” - Cannot open .py files: “[Errno 2] No such file or directory” 无法打开文件'file.py':[Errno 2] 没有这样的文件或目录 - Can't open file 'file.py': [Errno 2] No such file or directory PyCharm 没有找到 Anaconda Python,给出“无法打开文件 'python.py':[Errno 2] 没有这样的文件或目录?” - PyCharm not finding Anaconda Python, giving “can't open file 'python.py': [Errno 2] No such file or directory?” python:无法打开文件'python DACscrap.py&':[Errno 2]没有这样的文件或目录…但是可以吗? - python: can't open file 'python DACscrap.py &': [Errno 2] No such file or directory… but it does? Dockerfile-python:无法打开文件'/usr/app/client.py':[Errno 2]没有这样的文件或目录 - Dockerfile - python: can't open file '/usr/app/client.py': [Errno 2] No such file or directory Django 1.8 python:无法打开文件'manage.py':[Errno 2]没有这样的文件或目录 - Django 1.8 python: can't open file 'manage.py': [Errno 2] No such file or directory python:无法打开文件'C:\\usr\\local\\bin\\django-admin.py':[Errno 2]没有这样的文件或目录 - python: can't open file 'C:\\usr\\local\\bin\\django-admin.py': [Errno 2] No such file or directory windows 10 专业版中的 Docker:python:无法打开文件“manage.py”:[Errno 2] 没有这样的文件或目录 - Docker in windows 10 pro: python: can't open file 'manage.py': [Errno 2] No such file or directory python3: 无法打开文件 '/app/manage.py': [Errno 2] 没有那个文件或目录 - python3: can't open file '/app/manage.py': [Errno 2] No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM