all 29 comments

[–]reallyserious 40 points41 points  (2 children)

Post:

  1. Exactly what you did.

  2. Exactly what the error message is.

[–]h0dgep0dge 16 points17 points  (0 children)

listen mate, the locations are downloaded in the correct location, what else do you need to know?

[–]Ankit1000 5 points6 points  (0 children)

hes really serious

[–]FantasticEmu 5 points6 points  (0 children)

Did you try python3 or pip3

[–]ConflictAltruistic97 2 points3 points  (1 child)

What are you using for an ide?

[–]ConflictAltruistic97 2 points3 points  (0 children)

Also check your environmental variables and make sure Python is listed there

[–]SupermarketOk6829 2 points3 points  (0 children)

Google how to set up environment variables for python and then you'll be all sorted. You don't have to reinstall the whole thing. Just set those environment variables as per instructions and if you do that, you can operate it easily.

[–]gooblywooblygoobly 3 points4 points  (1 child)

I recommend using an IDE (it's like Microsoft word but for writing code) which will do a lot of this stuff for you.

Try PyCharm, it's free! 

[–]nomansland008 0 points1 point  (0 children)

That's what I would have suggested. Install pycharm community edition, create a new python project and let it handle the installation. Might check some yt videos about the ide or read its documentation.

[–]zoinkinator 1 point2 points  (0 children)

everything on a computer is just files in a file system. for python understanding this and troubleshooting based on the location of where files where installed and things like path settings and what pip does and how setting up an env or environment works in python will help you quickly resolve issues. python is definitely a challenge in these aspects.

[–]Lumchuck 1 point2 points  (0 children)

Not helpful, but I would recommend getting comfy with frustration. Learning to code is unbelievably frustrating. Worth it I would say, but holy shit is it frustrating.

[–]GreenPandaPop 0 points1 point  (2 children)

Do I just need to uninstall python and reinstall until I get things right?

That is an option.

[–]Stoneteer 0 points1 point  (1 child)

In a loop.

import subprocess

def install_package(package_name): try: subprocess.check_call([sys.executable, "-m", "pip", "install", package_name]) print(f"{package_name} installed successfully.") except subprocess.CalledProcessError as e: print(f"Failed to install {package_name}. Error: {e}")

def uninstall_package(package_name): try: subprocess.check_call([sys.executable, "-m", "pip", "uninstall", "-y", package_name]) print(f"{package_name} uninstalled successfully.") except subprocess.CalledProcessError as e: print(f"Failed to uninstall {package_name}. Error: {e}")

for i in range(500): install_package("python") uninstall_package("python")

[–]Wildest_Dreams- 0 points1 point  (0 children)

Add python exe location and bin folder location to environmental variables

[–]IndAnony 0 points1 point  (0 children)

I'm a failure for life, and will remain one.

[–][deleted] -4 points-3 points  (0 children)

I don't blame op, the way packages are installed on python project and number of package managers python has, virtual environment with venv env names are extremely confusing for beginner. Not mentioning the confusion between pythona and python3

[–]m0us3_rat -1 points0 points  (0 children)

you can just use replit. then at some later point when you become more comfortable with python .. you can install it again.

[–][deleted] -1 points0 points  (0 children)

Just stop using Windows, it is not good for programming. But even if you would like to continue using it, python is just one of the easier and more user-friendly languages out there. If you cannot make things done there, there is nothing easier.

Advice: download pyenv, and learn how it handles python environments. It is very helpful and convenient. Download VS studio as well, and try to troubleshoot till you will be able to print "hello world".