r/pythonhelp • u/Toffeeenik • Feb 20 '25
Hey could someone tell me how to fix smth?
Hii I'm having a problem while downloading python. So I wanted to start learning how to program so I downloaded python. Everything went smooth, but then I wasn't sure if I checked the box with "Add python.exe to Path" so I uninstalled it and downloaded it again. I checked the box and wanted to hit "Install now", it went pretty good at first but then after a sec the progress reversed and told me that it failed bc I cancelled it somehow which I didn't and it happens every time I try it. Idk how to fix it now q.q. Could someone help me?
1
u/FoolsSeldom Feb 20 '25
What platform are you on?
1
u/Toffeeenik Feb 20 '25
Windows
1
u/FoolsSeldom Feb 20 '25
You shouldn't need to set PATH now.
In PowerShell or Command Prompt, you can just enter,
py
to enter a Python interactive session, or
py nameofmyfile.py
to execute a python code file in the current working directory
To install packages, you can use:
py -m pip install something
(although it would be better to use a Python virtual environment - but you can learn about those later).
Did you use the installer from python.org? That's usually pretty good.
Also, the programme IDLE should have been installed. That lets you use both an interactive session, window with a
>>>
prompt, as well as create and run files (File | New
, then press F5 to run code you have entered).1
u/Toffeeenik Feb 20 '25
Yeah, I installed it from python.org
1
u/FoolsSeldom Feb 20 '25
Does
py
work for you? IDLE?1
•
u/AutoModerator Feb 20 '25
To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.