r/learnpython • u/zeewooly • Aug 30 '26
Brand new to all of this
Hi there!
College student here and completely brand new to using Python. I am in a level 1 Python class and I don't think I have it installed correctly on my PC. We have to use Visual Studia with it and when I did a test page, and test page 2, I go to search it in Command Prompt and it says it doesn't exist. Could the path be wrong or is it something else? TIA and if you need any screen shots let me know.
0
Upvotes
1
u/Gtdef Aug 30 '26
It's hard to say exactly what went wrong.
If you install it with winget, it will handle the path itself for sure. You just reload the terminal, type py --version and it should work.
If you install it from the python site, you will have to follow the instructions of the installation wizard. It may handle the path itself, or it may fail (has happened to me before). Try typing "env" on windows search (the windows button on your keyboard), and click on "Environment Variables". You will see 2 tables there, with Path/Variable columns. You have to doubleclick on the "Path" line in each table and check if the Python isntallation directory exists somewhere there. If not you will have to add it manually in the user path.
This is also a good chance to sharpen the most important developer skill, googling. Try googling for "how to add python in path", or ask an LLM the same question, see if you can make sense of it.
Once the path is correctly setup, you should be able to open a terminal/powershell and type either py --version, python --version, python3 --version and one of those will give you some output. The one that does is the command you will use in the future.
1
u/FoolsSeldom Aug 30 '26
I don't know what you mean by "search it in Command Prompt". Search for what exactly?
How did you install Python on your computer? It is good to confirm it is working correctly from the command line (Command Prompt or Powershell) before trying from your editor.
On a Windows computer, just entering
pyon its own will start up Python's interactive shell, with a>>>prompt. Enterexit()to leave it. This would show Python is correctly installed.If you create a simple Python programme using a text editor, or IDLE, which is normally installed alongside Python, you will be able to quickly confirm that things are working with files as well. Save it as
hello.pyand run usingpy hello.py.You can even do this from the Command Prompt:
Do you mean Visual Studio or VS (Visual Studio) Code? These are very different products.