3 ms·
Also: pip freeze > prod.txt And then on production environment: pip install -r prod.txt
by xenator 7y ago
Also:
pip freeze > prod.txt
And then on production environment:
pip install -r prod.txt
- icebraining 7y agoPipenv uses hashes to make sure the files are really the same, not just packages with the same version number.
- xenator 7y agoI agree that mostly hashes do their job. The same time I think there is some corner cases. As nature of the python packages can be a bit different comparing to the other packaging systems. File setup.py actually is python file and it is executed when processes. So, it possible that depending on existence of some libraries on your system you will get very different results. For example packages can require very different dependency if you build on Windows or Linux. This case hashes can't do much to guaranty consistency.