Bundle All Packages Required from a Python Script into a Folder
I Have My Python Script and My Requirements. Txt Ready. What I Want to Do Is to Get All the Packages Listed in the "Requirements. Txt" into a Folder. in the...
I have my Python script and my requirements.txt ready.
What I want to do is to get all the packages listed in the "requirements.txt" into a folder. In the bundle, I'd for example have the full packages of "pymysql", "bs4" as well as all their dependencies.
I have absolutely no idea how to do this. Could you help me please? I am stuck and I am really struggling with this.
I am using Python 3.6
I am using "pip download -r requirements.txt" but it's not downloading the dependencies and outputs me only.whl files whereas I'm looking for "proper" folders..
1 Answer
Couldn't you just use a virtual environment (virtualenv folder_name) and then activate it unless you are looking for something else.
Once it's activated install of your libraries and drown its there using pip install