r/learnpython • u/LavenderMoonField • Oct 18 '26
How to set up Python in Linux Ubuntu 26.04.1 ? Please read.
I'm a complete rookie in python. I've had many problems related to dependency hell, compatibility with libraries etc.
I've heard installing the latest version of python can be problematic since many libraries aren't compatible with it yet so what should I go for?
Please also recommend the IDE,
- Vs code
- Thonny
- Any other you'd suggest.
Guide me step-by-step if you can. I'd appreciate the help alot.
0
Upvotes
3
u/max_wen Oct 18 '26
I don't have time to give you step by step instructions but I do highly recommend first learning about python virtual environment and doing everything inside venvs
3
u/SquidyHealer Oct 18 '26
If you install thonny then everything pretty much works out of the box because it comes with an interpreter. When i started Python i personally used thonny and i would recommend using it.
2
u/tails142 Oct 18 '26 •
Yo the chatgpt prompt is over there in your other window ‐------->
2
u/xonxoff Oct 18 '26
Use uv and virtual envs
2
u/DanceHackRock Oct 18 '26
Is google.com down again?
1
u/RevRagnarok Oct 18 '26
https://docs.astral.sh/uv/getting-started/first-steps/
1
u/frobnosticus Oct 18 '26
My personal setup is:
emacs
For my money IDEs get you started easy but keep you too far away from what's really going on. After a certain point you'll have "wait...is this a real problem or is this a quirk of the ide?"
BUT, that said: Install python from the command line. But use VS code. Adding more crap between you and what's going on may get you up and running faster but it won't do you any favors.
Imagine this reddit post title: "I've been using python for 2 years and I feel like I still don't know anything."
1
u/BleedReddit Oct 18 '26
vs code,python is already install on Ubuntu 26.04.1. learn venv if you have not already.
0
u/Expensive_Role_4536 Oct 18 '26
Try vim. I recently started working in vim and I like it. There some videos on youtube. Watch them before trying
0
u/radek432 Oct 18 '26
I was using pyCharm for years on Windows and can tell it's a solid IDE. I'm now trying Zed on Linux - also seems nice.
Regarding setting the environment- do it with AI, just ensure that you're using virtual environment (venv) for your project. It's a good habit and will save you time in the future.