![]() ![]() ![]() If the package is on PYPI, download it and its dependencies to some local directory. Then upload to your target machine:ġ) Execute tar -zxf to extract the filesĢ) Execute pip install -r wheelhouse/requirements.txt -no-index -find-links wheelhouse to install the libs and their dependencies Then you can go in to requirements.txt and remove un-needed ones.Ģ) Execute command mkdir wheelhouse & pip download -r requirements.txt -d wheelhouse to download libs and their dependencies to directory wheelhouseģ) Copy requirements.txt into wheelhouse directoryĤ) Archive wheelhouse into with tar -zcf wheelhouse This will list all libraries in your environment. One option for creating the requirements file is to use pip freeze > requirements.txt. If you want install python libs and their dependencies offline, finish following these steps on a machine with the same os, network connected, and python installed:ġ) Create a requirements.txt file with similar content (Note - these are the libraries you wish to download): Flask=0.12 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |