Jun-10-2024, 09:14 PM
(This post was last modified: Jun-11-2024, 11:35 AM by IbrahimBennani.)
(Jun-10-2024, 07:59 PM)snippsat Wrote: You should not have folder%20
in name,
Just make new folder with much shorter path easier to work with,place your Python files there.
From egcmd
.
# Cd down C:\Users>cd .. # Make a folder C:\>mkdir my_code # cd in C:\>cd my_code # Make a file C:\my_code>echo.> hello.py # Look at files in folder C:\my_code>dir Volume in drive C has no label. Volume Serial Number is EED7-45CC Directory of C:\my_code . 10.06.2024 21:49 <DIR> .. 10.06.2024 21:49 2 hello.py 1 File(s) 2 bytes 2 Dir(s) 17 600 786 432 bytes free # Run code,i have added print('hello world') C:\my_code>python hello.py hello world C:\my_code>py hello.py hello world # Test python and pip version C:\my_code>python --version Python 3.12.2 C:\my_code>pip --version pip 24.0 from C:\Python312\Lib\site-packages\pip (python 3.12) C:\my_code>
Thank you for your answer. I moved the file to another folder easier to locate. I also tried running the line of code this way, without the
%20
portion in the name of the file, however the following was rendered: C:\Users\ibrah\AppData\Local\Programs\Python\Python312\python.exe: can't open file 'C:\\Users\\ibrah\\Waterfall': [Errno 2] No such file or directoryWhen not using
%20
instead of the space between "Waterfall" and "Chart", the following name: "Waterfall'"gets rendered instead of "Waterfall Chart".Does the location of the file has any incidence on its execution? Does it have to be at a specific place for it to be executed, for example, in "Python 3.12" for a file to be executed with the "py" command?