News for hackers. Stuff that matters.
Re:My Python Development Environment, 2020 Edition by dec0dedab0de on Monday November 11, 2019 @09:45PM (#21511089)
I love Python. Throughout my life I tried learning many languages, and Python is the only one that really stuck, and was able to do useful things. Learning Python changed my life, in 5 years my salary more than doubled, and for the last 5 years I've been a full time developer. A coworker likes to say that I think in Python.

That said, I 100% agree. I don't have the answer, except that I wish that there was one official answer, for developers and deployment that was easy to explain to beginners.

For what it's worth I've been using pipenv for over a year and it works good enough. I think npm's approach is better, but not perfect. I've heard good things about yarn. I know CPAN is the grandfather of all of them. I've barely used gems but they seem like magic, and Go get your repo URI out of my code please and thank you. :-) All fun aside, what languages have it right? and is there maybe a way to come up with a unified language dependency manger?

Re:My Python Development Environment, 2020 Edition by heyoni on Monday November 11, 2019 @09:54PM (#21511140)
Basically this. Every tool does the same thing slightly differently and all run into different variations of the exact same problem. Is your interpreter in your path? Do you have the right version of your modules installed?

Technically, OP didn’t have to use pipenv for anything except knowing which versions of each dependency to install (Pipfile.lock) with good old pip. Those other tools are mere conveniences. Giving up on a language for that...that’s drastic.

Re:My Python Development Environment, 2020 Edition by Rotareti on Tuesday November 12, 2019 @07:19AM (#21513472)
> and is there maybe a way to come up with a unified language dependency manger?

For interpreter/compiler version management you can use asdf [0]. It works for all popular programming languages. You can use it to replace tools such as pyenv, nvm, gvm, etc.

[0]: https://asdf-vm.com/#/

Re:My Python Development Environment, 2020 Edition by Chris2048 on Tuesday November 12, 2019 @08:40AM (#21513965)
There is no link to asdf ( "[0]" ) in your comment
Re:My Python Development Environment, 2020 Edition by Rotareti on Tuesday November 12, 2019 @08:43AM (#21513988)
Whoops.. There is one now :)