Home > other >  Python: can 't open the file' hello. Py ': [2] Errno No to the file or directory
Python: can 't open the file' hello. Py ': [2] Errno No to the file or directory

Time:10-04

My system: Windows 7
Python version: 3.8
You through the video to learn python first problem is:
Python: can 't open the file' hello. Py ': [2] Errno No to the file or directory,
Is to run through the terminal command way to write their own data in a text document, the process is very simple
1. On your desktop to create a text document hello. Py, want to change the file attributes to py
2. Enter the desktop in the DOS, type CD desktop
3. Run the hello. Py, input python hello. Py
But the result is always an error,

Through the baidu can find circumstances is:
Files or folders have space to add double quotation marks,
But I am not this kind of circumstance, because of its own file icon is not what happens, then looked at the file properties

Original himself no correct file attributes, because the extension is hidden, it is easy to see somebody else put a. Py change to come over,
So, here is the problem of how to change the file name, the method is:
1. Save as, at that time I was with the method
2. According to extension, "computer - groups, the folder and search options - view - hidden known file types of extension", check the off line,

Finally converted file icon is like this,

  • Related