Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Python's pipenv slow?

Tags:

I tried switching from venv & conda to pipenv to manage my virtual environments, but one thing I noticed about pipenv that it's oddly slow when it's doing "Locking" and it gets to the point where it stops executing for "Running out of time". Is it usually this slow or is it just me? Also, could you give me some advice regarding how to make it faster?

like image 776
Prepcastdoom Avatar asked Aug 25 '19 13:08

Prepcastdoom


Video Answer


2 Answers

Yes, I've found pipenv's locking and dependency resolution is terrible. For what it's worth, I've moved to just venv and poetry. The poetry github has a section talking about pipenv, and also note that poetry is a little less concerned with your actual virtual environment, and more about dependency management/packaging.

like image 196
Nate Dellinger Avatar answered Sep 24 '22 12:09

Nate Dellinger


Pipenv is literally a joke. I spent 30 minutes staring at "Locking", which eventually fails after exactly 15 minutes, and I tried two times. The most meaningless thirty minutes in my life.

Was my Pipfile complex? No. I included "flask" with "flake8" + "pylint" + "mypy" + "black".

Every time someone tries to fix the "dependency management" of Python, it just gets worse. I'm expecting Poetry to solve this, but who knows.

Maybe it's time to move on to typed languages for web development.

like image 20
Jay Lee Avatar answered Sep 22 '22 12:09

Jay Lee