[英]Ubuntu Unable to execute No such file or directory
Installed Ubuntu and get this error.安装 Ubuntu 并收到此错误。 Latest Python package installed
最新安装的 Python package
Command: sudo./Task1.py命令: sudo./Task1.py
Error: sudo: unable to execute./Task1.py: No such file or directory错误: sudo:无法执行。/Task1.py:没有这样的文件或目录
Working Command:工作指挥:
but sudo./Task1.py not working can anyone help me但是 sudo./Task1.py 不工作任何人都可以帮助我
Thank you谢谢
ls to check you are in the correct directory. ls 检查您是否在正确的目录中。 Then try python task.py
然后尝试 python task.py
Several ways:几种方式:
pwd
to show dir address.pwd
显示目录地址。ls | grep py
ls | grep py
ls | grep py
to see whether it is there. ls | grep py
看是否有。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.