Mar-02-2017, 12:48 PM
Hi there and thank you for looking. I am very much a novice and believe Python would be an ideal language to start with due to the simplicity of the syntax. Unfortunately I have hit a road block right away.
I am using a tutorial that is a few years old that used python 3.5.1 I installed 3.6.0 as from what I could see there should be no major issues. I downloaded the x86-64 installer from the official Python website and when installing made sure to have that PATHING is selected and left the location as default (this is in appdata and not c:\(LOCATION) like all tutorials suggest). The tutorial asks me to make a text doc and type:
then save the text doc (filename=hello)with .py as the end of the file name. Then run cmd console type
python
this returns the version etc
I exit that and now am to run the hello.py the folder location is (I have tried Desktop and other locations all seem to fail) on C:\PythonPractice (I removed the space in an attempt to solve the problem, no luck)
I do this by either cd.. to reach c and then cd pythonpractice to enter the folder.
Then type
and it returns
c:\”PATH”\python.exe: can't open file “hello.py”: [Error 2] No such file or directory
I have tried uninstalling and reinstalling, changed the location of python from Appdata to c:\ and looked online and found nobody else who has had this issue yet alone a solution. I am at a complete loss and I worry that if the basics are so difficult then maybe this is not a suitable language for learning like I thought?
Would very much appreciate a solution to this and thank you very much for reading.
I am using a tutorial that is a few years old that used python 3.5.1 I installed 3.6.0 as from what I could see there should be no major issues. I downloaded the x86-64 installer from the official Python website and when installing made sure to have that PATHING is selected and left the location as default (this is in appdata and not c:\(LOCATION) like all tutorials suggest). The tutorial asks me to make a text doc and type:
print(“Hello World”)
then save the text doc (filename=hello)with .py as the end of the file name. Then run cmd console type
python
this returns the version etc
I exit that and now am to run the hello.py the folder location is (I have tried Desktop and other locations all seem to fail) on C:\PythonPractice (I removed the space in an attempt to solve the problem, no luck)
I do this by either cd.. to reach c and then cd pythonpractice to enter the folder.
Then type
py hello.py
and it returns
c:\”PATH”\python.exe: can't open file “hello.py”: [Error 2] No such file or directory
I have tried uninstalling and reinstalling, changed the location of python from Appdata to c:\ and looked online and found nobody else who has had this issue yet alone a solution. I am at a complete loss and I worry that if the basics are so difficult then maybe this is not a suitable language for learning like I thought?
Would very much appreciate a solution to this and thank you very much for reading.