Python Forum
starting python from windows command prompt
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
starting python from windows command prompt
#1
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!
Reply
#2
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.
Reply
#3
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?
Reply
#4
(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.
Reply
#5
thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Noob warning: trying to use pip to install pytest and pep8 in Command Prompt adifrank 4 201 Dec-20-2020, 04:23 AM
Last Post: adifrank
  Running Python in Command Prompt Anwar 3 271 Nov-15-2020, 03:15 PM
Last Post: snippsat
  Will not print in command prompt PandaCode 12 1,067 May-06-2020, 03:48 AM
Last Post: PandaCode
  Script works when executed from command prompt but not when executed in SDP Tippex 0 341 Apr-07-2020, 04:26 PM
Last Post: Tippex
  Can read files in command prompt but not IDE Exsul 2 634 Sep-13-2019, 01:40 AM
Last Post: jsira2003
  Issue starting Python on VSC (Nooby) Buggy 1 647 Mar-14-2019, 09:44 PM
Last Post: snippsat
  Python's id() function output in prompt and script mode stormshadow 4 1,363 Dec-10-2018, 10:08 AM
Last Post: stormshadow
  command prompt saisankalpj 8 2,071 Nov-28-2018, 04:13 AM
Last Post: saisankalpj
  python 'SMTP debugging server' not starting local error pcsailor 1 984 Nov-26-2018, 10:13 PM
Last Post: micseydel
  Command Prompt Issue benzenegirl 2 1,013 Oct-25-2018, 03:09 PM
Last Post: The_Raven

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020