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 :
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.