Live data from Hacker News

Python 3.11

docs.python.org

71–80 of 156 posts

Re: Python 3.11

#71
Python is deceptive. They lure you in with its simplicity, and then one day you want to deploy your software and you realize that it's more complicated than any other programming language ever conceived of.

Re: Python 3.11

#72
post #42

Earlier quoted context omitted.

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

For me, pyenv on Mac is about 15 minute compile time with a bunch of environment variables required to make sure tkinter works properly.

    brew install pyenv

Re: Python 3.11

#73
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?

Please enough of this. Trying spending 2 minutes googling it. Hint: pyenv

I wanted to install python on a new Mac last night and just couldn’t get up and running. Closest I got was with using anaconda but although I could get the right env in the terminal I couldn’t get either paycharm or vscode to pick up the correct interpreter/packages etc.

I’d almost guarantee there was something simple I was missing but for someone not familiar with the ecosystem getting python set up to do more than just hello world is a shitshow.

Re: Python 3.11

#74

Python is deceptive. They lure you in with its simplicity, and then one day you want to deploy your software and you realize that it's more complicated than any other programming language ever conceived of.

Because of dependency management, or?

Re: Python 3.11

#75

Python is deceptive. They lure you in with its simplicity, and then one day you want to deploy your software and you realize that it's more complicated than any other programming language ever conceived of.

What kind you issues you get during deployment? I think if running on right version then there should not be any issues.

Re: Python 3.11

#76
post #74

Python is deceptive. They lure you in with its simplicity, and then one day you want to deploy your software and you realize that it's more complicated than any other programming language ever conceived of.

Because of dependency management, or?

Because of having to know what WSGI and ASGI are and picking the right one. Then pick which implementation of the above you want to use. Then configuring it correctly for your app. And finally make it play nicely with nginx/apache/whatever.

If on the other hand you're trying to deploy a desktop app, that is an entirely different kettle of 'fun'.

Re: Python 3.11

#77

Python is deceptive. They lure you in with its simplicity, and then one day you want to deploy your software and you realize that it's more complicated than any other programming language ever conceived of.

This is a solved problem. The community provides a handy system overview[^1] that should be good enough for most cases.

[^1]: https://xkcd.com/1987/

Re: Python 3.11

#78
post #76
post #74

Earlier quoted context omitted.

Because of dependency management, or?

Because of having to know what WSGI and ASGI are and picking the right one. Then pick which implementation of the above you want to use. Then configuring it correctly for your app. And finally make it play nicely with nginx/apache/whatever. If on the other hand you're trying to deploy a desktop app, that is an entirely different kettle of 'fun'.

That's not really a criticism of Python, is it? What do you want? One Way To Do Things with No Configuration with magical compatibility with nginx/apache/whatever ?

Re: Python 3.11

#79

Python is deceptive. They lure you in with its simplicity, and then one day you want to deploy your software and you realize that it's more complicated than any other programming language ever conceived of.

It's probably the most voiced complaint these days, unless core devs are deaf, I bet ten solid dollars they're gonna address that soon.

Re: Python 3.11

#80

Python is deceptive. They lure you in with its simplicity, and then one day you want to deploy your software and you realize that it's more complicated than any other programming language ever conceived of.

I don't know; I've just written something in .net/c# and it's pretty bloddy difficult to deploy.
Post reply on HN