4 ms·
This looks pretty, but I've never personally had trouble with `pip freeze > requirements.txt` What benefits does pipenv have beyond storing the hashes as well?
by j2kun 9y ago
This looks pretty, but I've never personally had trouble with `pip freeze > requirements.txt`
What benefits does pipenv have beyond storing the hashes as well? In what way is it more sane? For example, does it get around the issues with, e.g., matplotlib being installed in a virtualenv?
- abhirag 9y agoI assume you are referring to the issues related to installation of external GUI frameworks in virtual environments mentioned here -- [https://matplotlib.org/faq/virtualenv_faq.html https://matplotlib.org/faq/virtualenv_faq.html], I am afraid pipenv doesn't solve that any better than virtualenv’s --system-site-packages option -- [https://docs.pipenv.org/advanced/#working-with-platform-provided-python-components https://docs.pipenv.org/advanced/#working-with-platform-prov...]. If you are happy with your pip and venv workflow you can happily ignore pipenv, I personally prefer it because: - It combines all the features of pip and venv with a better UI(in my opinion). - I can specify my environments in more detail using Pipfile [https://docs.pipenv.org/advanced/#specifying-basically-anything https://docs.pipenv.org/advanced/#specifying-basically-anyth...] - It is integrated with pyenv [https://docs.pipenv.org/advanced/#automatic-python-installation https://docs.pipenv.org/advanced/#automatic-python-installat...] - The promise of deterministic builds