Verifying I installed Python correctly

Sunil KR krlinus at yahoo.com
Mon Apr 25 15:33:06 EDT 2022


cd C:\google-python-exercises> python hello.py


this doesn't looks like a valid command. However, is it because a newline got swallowed by misformatting?

For clarity, I am reproducing the correct version of the steps:

cd /d  C:\google-python-exercises
python hello.py
The error is:  The system cannot find the path specified. If the above version of the steps is what you actually performed, I think that by "path" it may be referring to the python command. For the system to be able to find python, its location should be updated in the "PATH" environment variable. 

If you would rather not distract yourself with modifying the PATH variable you can do what Barry says and just use py, because py is installed in a location already specified in PATH

If you want to fix your PATH environment variable there is more than one way to do this and you may find this out by googling, as you may get a better illustrated answer than it would be possible on this forum

Sunil


 

    On Monday, April 25, 2022, 10:50:52 AM PDT, Greg <gd75291 at gmail.com> wrote:  
 
 I am trying to get Hello World to appear under my directory. The files of

*C:\Users\gd752>cd C:\google-python-exercises> python hello.py*
*The system cannot find the path specified.*

*C:\Users\gd752>cd C:\google-python-exercises>*
*The syntax of the command is incorrect.*

I installed version 3.10. I am stuck and could use some help.
Thx,


[image: directory pic.png]
-- 
https://mail.python.org/mailman/listinfo/python-list
  


More information about the Python-list mailing list