Earlier quoted context omitted.
A virtualenv is just a bunch of packages, you end up with the same thing whatever you want to call it. It is probably a more roundabout solution that it needs to be, but I don't find many problems myself (also using poetry).
He also said virtual envs install their own copy of Python. No need for that either. Coming from other languages the whole virtual env thing seems alien especially the way it messes with your shell.
You don't really need a virtualenv
11–20 of 148 posts
Re: You don't really need a virtualenv
#12Earlier quoted context omitted.
A virtualenv is just a bunch of packages, you end up with the same thing whatever you want to call it. It is probably a more roundabout solution that it needs to be, but I don't find many problems myself (also using poetry).
He also said virtual envs install their own copy of Python. No need for that either. Coming from other languages the whole virtual env thing seems alien especially the way it messes with your shell.
Re: You don't really need a virtualenv
#13As a Ruby and Python developer I often wonder why Ruby doesn't need a virtual env. What did Ruby get right that Python didn't?
Re: You don't really need a virtualenv
#14As a Ruby and Python developer I often wonder why Ruby doesn't need a virtual env. What did Ruby get right that Python didn't?
Python isn't at all the only language to suffer this problem. e.g. "DLL hell" and its variations like Haskell's "cabal hell". With Ruby, if its packages are installed with bundler, then these packages are installed locally in the project directory.
Re: You don't really need a virtualenv
#15Re: You don't really need a virtualenv
#16As a Ruby and Python developer I often wonder why Ruby doesn't need a virtual env. What did Ruby get right that Python didn't?
Re: You don't really need a virtualenv
#17Earlier quoted context omitted.
As the authors said - no more virtual envs.
A virtualenv is just a bunch of packages, you end up with the same thing whatever you want to call it. It is probably a more roundabout solution that it needs to be, but I don't find many problems myself (also using poetry).
I really like writing one-off or sporadically used commandline tools. Loading a virtualenv or navigating to a directory before executing kind of sucks. Generally, I install into my homedir. I haven't read through or tried this out, but it seems like it might better address this use case.
You're right, this seems to be very similar. To me, it looks like it removes one abstraction layer of pushing-popping the environment.
Re: You don't really need a virtualenv
#18Re: You don't really need a virtualenv
#19$ mkvirtualenv -a $(pwd) new_venv
$ pip install -r requirements.txt
When you want to activate this env and cd to the directory where you created it, you can simply do:
$ workon new_venv
That's all you need to know. It just works.
Re: You don't really need a virtualenv
#20Earlier quoted context omitted.
A virtualenv is just a bunch of packages, you end up with the same thing whatever you want to call it. It is probably a more roundabout solution that it needs to be, but I don't find many problems myself (also using poetry).
I haven't used Poetry and most of my workplaces have done their own thing with versioning Python packages. So my virtualenv experience has been on my own or with toy projects. I really like writing one-off or sporadically used commandline tools. Loading a virtualenv or navigating to a directory before executing kind of sucks. Generally, I install into my homedir. I haven't read through or tried this out, but it seems…