r/Python • u/noPTSDformePlease • Dec 17 '17
pipenv is the worst
<rant>
so I've been using pipenv recently on a new project because its the recommended virtualenv for new heroku python django projects.
let me just say that it never works, its slow, and it is super frustrating. (i'm on a windows 10 system)
its a downgrade from virtualenv (i know that pipenv uses virtualenv under the hood, but it certainly doesn't work nearly as well)
there is no visual indicator that i'm in a pipenv shell.
it randomly decides to deload my requirements halfway through a dev session
it doesn't register input properly when i'm trying to login to the heroku CLI
it hangs frequently
it is SO SLOW ITS RIDICULOUS
it randomly switches between python2 and python3, and i have to keep resetting the PATH variables.
I mean, I've got a lot of respect for pipenv's creator, hes the same guy who made the requests package. The guy is great and a superb python guy.
BUT PIPENV SUCKS TOTAL BALLS.
</rant>
3
u/dutchminator Dec 17 '17
My biggest issue with Pipenv, and why I have doubts about their "Windows is a firstclass citizen" claim, is that their output is very colourful (odd, but ok) and that they use ANSI colours which are not supported by either cmd or Powershell. End result is that very critical feedback from pipenv is unreadable. How can that have ever passed a usability test?
1
Dec 18 '17
Agreed. Except, I've never liked cmd or PS. I use WSL instead. And I use a terminal emulator which gives me nice powerline fonts and colors. Hence problem solved. I absolutely love Pipenv tho.
2
u/TonyF66 Dec 17 '17
when you say a visual indicator - do you mean a change in your prompt ? If you are on Linux you can use PROMPT_COMMAND env and set it to a shell function to set the actual PROMPT - and use the VIRTUAL_ENV environment variable to identify the actual virtual environment.
That doesn't fix your other issues though :-(
2
u/philipmat Dec 17 '17
Paging /u/kennethreitz
4
Dec 18 '17
This feedback is in no way constructive, valid, nor welcome.
1
u/philipmat Dec 18 '17
That’s pretty much what everyone added eventually.
Sorry to have pinged you - I should’ve given the community more time to manifest.
Hope you have a great day.
1
u/st3fan Dec 18 '17
there is no visual indicator that i'm in a pipenv shell
stefan@antares:~/Projects/tss-server$ pipenv shell
(tss-server-Wgd47OHU) stefan@antares:~/Projects/tss-server$Ok, so the -Wgd47OHU part is a bit confusing, I am not entirely sure what the point of that is, but this is pretty much similar to virtualenv right?
1
1
u/ubuntourist May 24 '18
I've now had pipenv hang on Mac OS X, Ubuntu 16.04 and a brand new week-old Arch Linux... The Arch Linux system had no prior baggage.
And it doesn't hang at the "Locking [packages] dependencies..." step, although that takes quite some time to finish. It gets as far as:
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (hex)!
Installing dependencies from Pipfile.lock (hex)...
[...progress bar...] 10/11 - 00:00:00and there it sits indefinitely. (It has behaved this way for several different packages on the Ubuntu system. This i my first go at it on Arch.)
8
u/[deleted] Dec 17 '17
none of these things are true. if you want to reproduce some of these issues and open them as issues on the repository, feel free, but it's unlikely that any of the above are pipenv problems and far more likely they are problems with your system.