I cannot open any.py file: when I run in the command prompt either "python test.py" or "python3 test.py" or "py test.py", it just says can't open file 'C:\Users\Ciela\Desktop\test.py': [Errno 2] No such file or directory .
What could it be??
I would try first:
cd C:\Users\Ciela\Desktop\
in command prompt then I would try it again
I sorted it out. For anyone struggling with the same issue, the problem might be OneDrive. Windows10 automatically creates 2 desktops: the one in User, and the one in User/OneDrive, where files are stored by default. Essentially I was looking for the files in the wrong desktop folder.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.