Python Forum

Full Version: starting python from windows command prompt
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am trying to open python from the windows command prompt. If i want to go to the map that includes the python -8.3.5 file by typing dir user and subsequently dir Maarten (the map named after my name were the "download" map is located which contains the python-3.8.5 file, i get a message: "volume in drive C has no label".

I guess if i want to start python from windows command prompt i have to go the the map in which the python -3.8.5 file is (c:\>user\Maarten\downloads) and than type "python" ?

What am i doing wrong?

Any input is much appreciated!
Follow this Python 3.8 (3.6-3.7) and pip installation under Windows.
So it important that python and pip work command from any folder in cmd.
MaartenRo Wrote:I guess if i want to start python from windows command prompt i have to go the the map in which the python -3.8.5 file is (c:\>user\Maarten\downloads) and than type "python" ?
No,and python installed should not be in download folder.
(Sep-04-2020, 04:36 AM)MaartenRo Wrote: [ -> ]map is located which contains the python-3.8.5 file, i get a message: "volume in drive C has no label".
To navigate use cd and not dir(for listing files in folder).
That's why you get this error message volume in drive C has no label.
cmd tutorial.
thanks for the answers and for the tutotial link!

My python file is in the Appdata map. I cannot see this map in the command prompt. Is there a way to find this map?
(Sep-04-2020, 05:38 AM)MaartenRo Wrote: [ -> ]My python file is in the Appdata map. I cannot see this map in the command prompt. Is there a way to find this map?
Call it path and not map,there is info about this in link you have gotten.
So in Environment Variables Path you add path to Python.
The default path will eg be.
C:\Users\<your name>\AppData\Local\Programs\Python\Python38
So as in image in link,you add:
C:\Users\<your name>\AppData\Local\Programs\Python\Python38\
C:\Users\<your name>\AppData\Local\Programs\Python\Python38\Scripts\
Restart Pc,and test python and pip -V command from any folder in cmd to see if it works.
thanks