Live data from Hacker News

Python 3.11

docs.python.org

11–20 of 156 posts

Re: Python 3.11

#11
post #6

just spent about 4 hrs getting Python 2 and pip setup on my Mac. Any time I have the misfortune of needing to use python I get cold sweats at the thought of the environment stuff. Why is this still such a massive problem?

Using Python 2 is a big part of the problem. Modern Python 3 is a lot nicer. Also you're much better off if each Python project has its own virtual environment using the venv module.

Re: Python 3.11

#13
post #6

just spent about 4 hrs getting Python 2 and pip setup on my Mac. Any time I have the misfortune of needing to use python I get cold sweats at the thought of the environment stuff. Why is this still such a massive problem?

What are you trying to do? It generally is not a problem unless you are using old or obscure packages. Sure some projects need those things, probably a lot of them, but I don't think that is really pythons fault. Not that this couldn't be done better in python. What issues did you encounter?

Re: Python 3.11

#14
post #6

just spent about 4 hrs getting Python 2 and pip setup on my Mac. Any time I have the misfortune of needing to use python I get cold sweats at the thought of the environment stuff. Why is this still such a massive problem?

I dont know how its actually possible to spend 4 hours getting lyton2 and pip setup at all. The issues deal with managing upgrades, not initial setup

Re: Python 3.11

#15
post #6

just spent about 4 hrs getting Python 2 and pip setup on my Mac. Any time I have the misfortune of needing to use python I get cold sweats at the thought of the environment stuff. Why is this still such a massive problem?

Install miniconda, it’s amazing. Takes roughly 30 seconds to install. After using conda I’ve never had environment issues

Re: Python 3.11

#17
post #6

just spent about 4 hrs getting Python 2 and pip setup on my Mac. Any time I have the misfortune of needing to use python I get cold sweats at the thought of the environment stuff. Why is this still such a massive problem?

4 hours? Yeesh. Here's how to do it in 5-10 minutes.

Use pyenv to install any python version and pyenv-virtualenv to manage virutal environments.

https://github.com/pyenv/pyenv

https://github.com/pyenv/pyenv-virtualenv

Re: Python 3.11

#18
post #6

just spent about 4 hrs getting Python 2 and pip setup on my Mac. Any time I have the misfortune of needing to use python I get cold sweats at the thought of the environment stuff. Why is this still such a massive problem?

Python dependency management is rubbish, and many python projects have incomplete or missing requirements.txt files. I dislike Python as well (why on earth is whitespace relevant??) but unfortunately if you want to tinker with any of the newest deep-learning projects, you'll need python.

I use Anaconda for package management on Ubuntu, which helps a lot, but it's still not my preferred programming language.

Re: Python 3.11

#19
post #6

just spent about 4 hrs getting Python 2 and pip setup on my Mac. Any time I have the misfortune of needing to use python I get cold sweats at the thought of the environment stuff. Why is this still such a massive problem?

Sounds more like the misfortune of using a Mac.
Post reply on HN