[英]Error Changing Directory on Python Ubuntu
Very new to python here and I have referenced several other questions on stack overflow, but I can't see what I'm doing wrong here. 这里对python很新,我在堆栈溢出中引用了其他几个问题,但是我看不到我在做什么错。 I have tried the following: 我尝试了以下方法:
os.chdir('/home/documents/Netflix Project/Cleaned Data')
os.chdir("/home/luke/documents/Netflix Project/Cleaned Data")
Every time I get the same error: 每次我遇到相同的错误:
OSError: [Errno 2] No such file or directory: '/Home/luke/Documents/Netflix Project/Cleaned Data'
Am I using incorrect syntax to call the directory? 我使用错误的语法来调用目录吗? I have been basing it off the following: 我一直基于以下几点:
>>> os.getcwd()
'/home'
Paths are case-sensitive. 路径区分大小写。 Are you sure you're not using Home
instead of home
? 确定要使用Home
而不是home
吗? The traceback looks like you are. 追溯看起来像你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.