'Can some one generate requirements.txt from my env? [closed]
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 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | AKX |
