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
  'pip' not recogmnized in windows prompt MaartenRo 1 364 Dec-21-2023, 09:05 AM
Last Post: menator01
  Starting over with Python Mark17 1 469 Sep-29-2023, 07:16 PM
Last Post: Larz60+
  What is the difference between Command Prompt and Sublimes yaoyao22 1 590 Jul-09-2023, 02:56 PM
Last Post: snippsat
  [SOLVED] [Windows] Right way to prompt for directory? Winfried 4 1,996 Jan-17-2023, 09:28 PM
Last Post: markoberk
  Open windows cmd prompt and run cmds with python Extra 3 1,404 Jul-14-2022, 06:07 AM
Last Post: Gribouillis
  Facing Problem while opening a file through command prompt vlearner 4 1,857 Jan-30-2022, 08:10 AM
Last Post: snippsat
Big Grin New to python, starting from scratch Pythnoobvent1971 1 1,972 Apr-16-2021, 01:33 PM
Last Post: Yoriz
  Noob warning: trying to use pip to install pytest and pep8 in Command Prompt adifrank 4 5,232 Dec-20-2020, 04:23 AM
Last Post: adifrank
  Running Python in Command Prompt Anwar 3 3,002 Nov-15-2020, 03:15 PM
Last Post: snippsat
  Will not print in command prompt PandaCode 12 12,831 May-06-2020, 03:48 AM
Last Post: PandaCode

Forum Jump:

User Panel Messages

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