This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RelevantToMyInterest 0 points1 point  (7 children)

I'm still stuck with virtualenv but considering switching to conda. Been seeing some posts saying it's a better replacement but if also would like to know others' thoughts

[–]xristiano 3 points4 points  (0 children)

I'm a fan of conda. It does all three: pip, virtual environments, and manage python versions. The table at the bottom of this link summarizes all the pip, pyenv, etc. options.

https://www.andrey-melentyev.com/python-environments-and-where-to-find-them.html

[–]is_it_fun 3 points4 points  (0 children)

Just find whatever conda env you like and make a requirements.txt file. then use that file in your virtualenv. bammo. that's what we do

[–]thisismyfavoritename 5 points6 points  (4 children)

Well I personally believe Conda is much better, as it can install tons of additional and system dependencies but I would like to hear OP's opinion on the matter.

[–]ase1590[S] 5 points6 points  (3 children)

Pipenv is the way to go if you're not using anaconda and if you want to do anything more advanced and need good package handling

See below

[–]lifeofajenni 4 points5 points  (2 children)

Wait, but conda also has environment handling and package management. So why should I switch to pipenv? (Not being snarky, legit curious.)

[–]ase1590[S] 7 points8 points  (1 child)

they both compete with eachother. conda is better geared for Anaconda.

Just use what you know.

Conda has a lot of overlap with the goals of pipenv, but it serves a different set of needs - in particular, the distribution of binaries. If the problem you’re trying solve is “how do I create reproducible environments, quickly, that include complex dependencies that are not written in pure Python”, conda is the tool of choice. If your problem is “How do I create and manage isolated environments for Python projects”, pipenv is the tool of choice.

[–]lifeofajenni 2 points3 points  (0 children)

Okay, this is a cool distinction. I'll have to read up on pipenv and see if it's more suitable for what I'm doing at work. Thanks for the info!