Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Can some one generate requirements.txt from my env?

Hello I sent a project to a friend, along with an virtual environment file containing all the libraries required for the project ready and installed, and I was told that needed the requirement.txt, cant they just have generated it using pip freeze > requirements.txt instead?.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Virtualenvs aren’t portable between OSes, Python versions, etc., so chances are they can’t use the virtualenv directory you’d sent.

In other words: chances are "no, they couldn’t have just done that".

They could have maybe gone through the trouble of looking at the metadata files in the virtualenv’s lib directory to recreate a requirements.txt… but that’s a bit too much trouble for something you should’ve just done in the first place.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading