r/learningpython • u/Sad_Patient8203 • Mar 10 '26
Why the Fuck is even figuring out how to setup python so fucking difficult
I’m brand new to coding, recommend learning python. Great sounds awesome. I have an immense passion for statistics and data and one day want to make it my career. But dawg. Why is setting up python so damn difficult. I don’t even know if I’ve installed it. I’m told to go to anaconda, okay cool set that all up. Then I’m told to install windows powershell 7 okay cool lemme go to Microsoft’s website and see if I can. Why do I have to run a code to install what should’ve come with it. Then I got sidetracked installed VStudio. And now I feel fucking lost, what the actual fuck am I doing can someone give me a very dumbed down version of how to even set it up. Like something even a person with a severe learning disability can comprehend. And I don’t trust YouTube cause a few months ago when I first attempted I got a fucking virus
2
u/SalvatoreEggplant Mar 10 '26
My advice: WinPython is the easiest to start with if you're on Windows. Light, can be installed portable, just runs out of the box, includes some common libraries.
I also have some instructions here, https://rcompanion.org/python/A03.html , which may help.
2
u/pceimpulsive Mar 10 '26
I had similar issues... Eventually I got it running then found out I could not do what I wanted unless I installed a 3 version out of date version of python, abandoned the snakes and went back to C# where shit just seems to work (e.g. a package that targets .net 6 still works in .net10, unlike python where it targets 3.11 and only works in 3.11 Plex correct me r/python!!), and I don't need to fuck about with venvs (it's handled in each solution file for me) requirements.txts and all that crap.. To me.. python seems harder to setup despite people saying it's much easier...
People say python is easier to read and write..
Until you copy something in with one too many spaces and you entire program stops work..
I'm sorry python fans but space based scope ways ass.
Granted there is extensions for vscode that help with all these problems! But they shouldn't exist to begin with IMHO.
I'll come back to python again in the future, I need to learn it, but damns it's annoying to setup at times...
Maybe I am just potato¿? :D haha
5
u/CraigAT Mar 10 '26
You can just download and run the Python installer from the main Python website (Python.org). If you're on Windows, tick the box to add to the Windows "Path" variable (will allow you to run the main Python program from any folder).
From there, you can create your code using any editor you like including Notepad. Save the Python code with a .py extension (careful of Notepad saving it with .txt on the end). Then you can run your Python code from the command line/terminal/PowerShell by typing
py myprogramname.pyorpython myprogramname.py.I would highly recommend an IDE (Integrated Development Environment) like VS Code, PyCharm, Thonny (for beginners) over a simple text editor - as it will have many helpful features like syntax highlighting, simple error highlighting, a debugger to step through your code and allow you to run your code by pressing a run button instead of typing commands.
Once you start importing packages beyond the built-in ones, then you should start looking into environments, the idea being that you setup your program with it's own isolated "environment" of packages, specifically for this project. The packages and versions are logged, so that you or anyone else can reproduce that environment using the same packages and should be able to expect the program to run the same way and with the same results.
When you start using packages, this does mean you may have to install some packages multiple times for each project that needs it, rather than installing the package once globally on your computer. But the former is preferable because it stops you updating a global package, that accidentally breaks a program you wrote previously, that was using the old version of the package.
2
u/user221272 Mar 10 '26
Imagine living in the era of the internet and LLMs and not being able to install Python...
I understand this is a beginner's ask, but for the love of God, the tone of the post when this is all VERY manageable.
Go to python.org and read the pages; everything is clearly explained. Take a deep breath and read. It will be alright.
1
u/drbobb Mar 10 '26
Conda is garbage.
Windows is garbage.
Linux + uv -> problem solved (MacOS sort of works too).
1
u/wokycookie101 Mar 10 '26
Just wait until you need to download compiling languages like erlang 💀
1
u/Odd_Cow7028 Mar 10 '26
You're going to need to calm down a little bit. There are different ways to get started and it looks like you've chosen one of the more complicated ones... but this is the world you're entering. Get used to not knowing things, trying things, those things not working, trying more things, rinse and repeat. It'll be better for your blood pressure if you do.
1
u/humanshield85 Mar 10 '26
Use anaconda or minicomda on windows will save you a lot of shit as a noobie
3
u/YogurtclosetOdd3661 Mar 10 '26
this is the easiest part my friend, now we have ai
1
u/azuredemigod Mar 10 '26 edited Mar 10 '26
That's it dude.
1
u/Paxtian Mar 10 '26
You're in Windows, so open the Microsoft Store app, search for Python, click install. That's really all you need to do.
Then you can open a command prompt and type "python" (or "python3"). If a Python prompt appears, congrats, it worked.
VSCode is a nice code editor for writing Python scripts. It's not absolutely required but does make some things easier. Be sure to install the Python extension.
1
u/enakamo Mar 10 '26
I empathize. Even though I consider myself very tech savvy, I had to struggle with the installation process. Python is very powerful but a system programming language also. Installation is straightforward if you know what you are doing otherwise one small optional argument can wreck havoc. Do you have a friend or a colleague who is a professional SWE? If so start with a discussion with them detailing your current system and what you expect to do with Python. Avoid searching the web/youtube for answers as they are crowded with non-essential products for unsuspecting newbies.
2
u/Shot-Document-2904 Mar 10 '26
It is frustrating. While I don’t write python, setting up my Ansible environments are a challenge at scale.
2
u/couldntyoujust1 Mar 11 '26
Try this instead. Go to Chocolatey's website, use the powershell command to install chocolatey in powershell 1-5 - whatever comes with your os - and then use that to install pwsh
choco install pwshThen install what you need from pwsh.
choco install python314 vscode anaconda uv # etcGo from there. Everything just works.
https://chocolatey.org/install
https://community.chocolatey.org/packages/
2
u/Jumpy_Fact_1502 Mar 11 '26
I agree it's harder than it needs to be for starters. instead try scratch and if you like statistics try R. But if you are gonna be working more on these things I would suggest starting with web interfaces before installing locally to avoid the hassle and learn command line as it will make your life easier
2
u/anselan2017 Mar 12 '26
I agree with you. I have more than 20 years experience as a developer but mostly in other languages (C++, Typescript, Rust) and every now and then I need python for something and I find it BAFFLING all over again how difficult it is to get set up right. So many choices for managing versions, setting up environments, integrating with IDEs, installing packages, fighting conflicts between dependencies... The language itself is great and easy, but the tooling is just overwhelming for a newcomer.
2
u/Traditional-Bat-7006 Mar 12 '26
Hey man. I know your struggle. I just installed it a few days ago and it was quite painful yeah. I also installed anaconda instead of the "raw python" version from python.org., because I want in the future to be able to do data science things. As far as I understand it goes like this:
I may be wrong but this is how I understand it with my 1 hour research.
2
u/Definition-Lower Mar 13 '26
I was also told that anaconda is a way to go for machine learning/statistics, but I don't recommend it. I was trying to set up conda environment with torch once, but after a lot of time installing/uninstalling torch and other packages (like torchvision), I found out that torch actually stopped releasing official wheels for conda package repository (or whatever it's called), and I just wasn't able to found a recent torch version for my cuda version.
Maybe I'm missing something, but I don't see any reason to use conda for managing virtual environments, just create standard .venv folder and install everything with pip (or even better with uv to make it faster). I just copied that .venv with torch and everything installed into my home directory and activate it whenever I need some packages from it.
1
u/Affectionate_Dot4424 Mar 10 '26
use linux
1
u/dmknght Mar 10 '26
Long story short: you tried it on Windows, which sucks. As i remember, Windows changed from "you can download python installer and use" to get it from our store, which was a complete mess. That, and the default PATH. Ofc there will be solutions for all of the basic problems. But if your machine has enough resources, try creating a virtual machine with Linux and play with python from there.
1
u/Sad-Sun4611 Mar 10 '26
I'm think PyCharm just handles this out of the box. Try that. Or ask an LLM to walk you through it step by step. This is like the secret part of programming they don't tell you about which if finaggling with different OS's and CLI tools to get your junk setup or working in the first place lol.
1
u/Jackpotrazur Mar 10 '26
I installed oracle box (vm) on my windows computer , then got an iso file or image of linux (kali) and ive been doing everything using vim as my editor inside of my vm (virtual machine ) in a linux environment.
1
u/Jackpotrazur Mar 10 '26
Setting up can be timely at times but once you break through that problem you can actually start learning , I would suggest trying to learn programing without learning a language first sounds counter intuitive but ud be surprised I've hit a wall and now im going to start writting code on paper 📃 and not even code more like this is the goal these are the components (logically) and these are the steps to achieve each piece or each component and then translate that into the programming language.
1
u/Neat-Walk-2361 Mar 11 '26
Install Python installer and use pycharm
1
u/PsychologicalAd1862 Mar 11 '26
It just works on Linux
1
u/Spiritual_Visual8092 Mar 11 '26
Bro leave a comment if you see this I will help you
1
u/foobarbecue Mar 11 '26
The problem is that Windows makes everything difficult. Decent operating systems like Debian come with a package manager that allows you to install anything you need easily.
Set up Windows Subsystem for Linux and then apt install python, job done.
1
u/Quirky_Database_5197 Mar 11 '26
that career is full of problems/challenges like this. For many who work in the field its just normal, a part of job. Setting up IDE is easiest problem that you will encounter. Then there will be setting up airflow, pyspark, docker. Its always a cycle of debugging & problem solving.
Honestly, If you are so enraged now, you should choose a different path.
1
u/ne0n008 Mar 11 '26
Virtual environment says hello ^_^
1
u/Environmental-Cup310 Mar 14 '26
I'm smiling at a lot of the comments because I've had the same experience in the past, re how seemingly difficult setup is, wtf is venv etc
I haven't done coding or scripting in a long time, but I still remember, so this post resonates with me, good to see someone talking about it
1
u/Desperate_Formal_781 Mar 14 '26
If setting up your environment makes you this frustrated, then probably software development is not for you.
1
u/InviteInfamous4629 Mar 14 '26
Retard
1
u/Massive-Ice2791 Mar 14 '26
Because you use windows, it’s just not worth it to use windows
1
u/Greedy_Sun5765 Mar 14 '26
You seem pretty shook. Just know this, it doesn’t get anymore straight forward after set up. Hope that helps.
1
u/tb5841 Mar 14 '26
What I did when I started is what I recommend every beginner does.
You can run Python code online without installing anything at sites like https://www.programiz.com/python-programming/online-compiler/
You can write code in a notepad file on your machine (or better, notepad++) and save it. Then when you want to run it, just copy and paste text into the website.
1
u/FrankScabopoliss Mar 15 '26
When you download python on windows, you get an executable you can run. Then, if you make a simple python script ( print(“hello world”) ), you can run it by opening any terminal window (like command prompt) and typing the path to the python executable (wherever you installed it) followed by the path to the python script.
As long as you are using standard python libraries (ones that come with python installation) your script will run.
If you then move onto more advanced programming, you’ll want to use virtual environments (to save yourself from dependency issues) and a better text editor or IDE.
A virtual environment is a place where you can install a specific python version, as well as third party libraries (or your own libraries) for that specific python version, and it won’t affect your other projects.
You can manage virtual environments from command line OR an IDE. You don’t need anaconda, or any conda, to manage environments. Python comes natively with venv for this, and it works perfectly fine. An IDE like vscode can do this as well.
My point is, you can, and should, try to do python WITHOUT an IDE or conda or specific windows tool like I stated in the first paragraph. Then you can figure out other tools and apps that will help make you work more efficiently.
1
u/Fit-Conversation856 Mar 15 '26
Yo programo en python hace años y JAMAS tuve que hacer ese proceso tan complejo, quien te dijo eso si python tienen instaladores que hacen todo eso al toque
1
u/MyNameIsBhex Mar 31 '26
I'm not even trying to install it to code, I'm just installing it to run a file organizer. I've had so many problems I couldn't recall them all. Installing Python on Windows is what people think the average Linux experience is
1
u/leftovercarcass Mar 10 '26
Because windows. It is much easier on linux.
-1
u/Navoke Mar 10 '26
Go to ChatGPT and paste this in: “I am brand new to programming and I want to start learning Python. Walk me through the exact steps to get Python setup on my computer.”
0
u/buzzon Mar 10 '26
It is not hard. Like, at all. Install python from official website. A folder should appear in C:\Program Files called Python3.10 (or whatever version you use). Inside it resides python.exe — the interpreter for the language. You can run it from command line by doing:
But you will benefit from putting it into system PATH environment variable.
Download and install PyCharm — specialized IDE for working in Python. VS Code is viable, but requires you to install VS Code extensions, while PyCharm works out of the box.
That's it. You are set to go.
Anaconda is not required. Nowadays Python handles virtual environments just fine on its own.
0
u/DinTaiFung Mar 11 '26
What happens If I use the same tone as the OP in my response?
Why the eff are you not using Linux?
0
u/rkalyankumar Mar 11 '26
Do yourself a favor, just stop using python and use rust or zig.
0
u/SeparateBroccoli4975 Mar 11 '26
Usually because we come from other languages and completely skipped that part and ended up fighting our way out of dependency-resolution hell...some ide's, even 'package managers' can become a hell within this hell ...just a fyi/heads-up.
0
u/solarsyn_ Mar 11 '26
I highly encourage watching a tutorial of someone installing and setting up python on Windows if you're using windows OS.
Don't pay attention to what IDE they use....that comes later.
You've got this! Keep trying - give yourself grace and a break if you keep hitting the same road block.
0
u/Miserable-Noise-5472 Mar 11 '26
"Run a code"
Yeah this guy computers.
0
u/TheNewerOldGuy Mar 12 '26
Some things are hard. Keep going and you'll learn more and more things, that will make other things easier. Pay attention to everything as you're going, don't just focus on your single goal at any given time.
0
u/eyluthr Mar 12 '26
just add Claude, done
0
u/crusoe Mar 12 '26
All other languages have gotten simpler to set up. Python somehow has added more and more package managers and gotten worse.
0
u/Odd-Diamond-4035 Mar 12 '26
Ignore all the advice above and learn to use a computer first. No point trying to do carpentry if you can't use a hammer. No point trying to do programming if you can't work a computer.
0
u/ispeakdsp Mar 12 '26
I make this very easy in the course "Python Applications for Digital Design and Signal Processing" starting later this month, showing best practice approaches for using Python for simulations and design verification of signal processing systems. (Including why you should NOT install the full Anaconda but use miniconda instead). More details and registration: dsp-coach.com
0
u/M_Alani Mar 12 '26
My two cents. Lookup installing MiniConda. Once done, in MiniConda install Spyder. Both are relatively easy to manage for a beginner.
0
u/don1topo Mar 13 '26
The moment that you said "Anaconda" I knew that you were already cooked. Better use a virtual machine with Linux.
-1
u/Aristoteles1988 Mar 10 '26
Yea man tried this last week and I was like “fuck this shit, what do you mean set up an environment”
-1
u/kauthonk Mar 10 '26
Go buy a Mac. It's a 100x easier to choose on a Mac.
-1
u/ConsciousBath5203 Mar 10 '26
Have you tried the official source rather than a package made by devs for people who know what a venv is?
Literally can also just switch to Linux and it comes prepackaged. It's literally not that hard.
2
u/[deleted] Mar 10 '26
[removed] — view removed comment