![]() ![]() Now we zip the folder using the following commands tar -zcf wheelhouse Now we move the requirements.txt to the wheel folder mv requirements.txt wheel This will download all the wheel files that are needed so we can use them offline sudo test/bin/pip3 download -r requirements.txt -d wheelĬffi-1.15.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whlĬryptography-36.0.0-cp36-abi3-manylinux_2_24_x86_64.whl Now let’s create a folder called “wheel” mkdir wheel Once the installation is complete we are going to create a “requirements.txt” file sudo test/bin/pip3 freeze > requirements.txt Let’s get started, I’m using an Ubuntu Server, I created a “virtual environment” using the following: sudo python3 -m venv testįor this example, I’m going to use the “ansible” package: sudo bin/pip3 install ansible ![]() It’s straightforward, well not really you can need to understand “wheels” but I will not cover that at all, just the How-To, if you want to learn more about “wheels” check out this great article from A customer asked how can I install Python Libraries in an air-gapped environment that got me thinking about it and led to this article.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |