To install Python packages on a system without direct internet access, you first need to collect the packages on a system with Python installed and with internet access.
-
On the online system go to a folder of your choice and create a “requirements.txt” file. The content of the file should list the required packages. A minimum for ibaVision with Python would be:
numpy>=1.16 -
Then create a subfolder “wheelhouse” and run this command from a shell:
pip download -r requirements.txt -d wheelhouse -
Copy the “requirements.txt” file to the “wheelhouse” folder.
-
Pack the contents of "wheelhouse” into an archive (e.g., zip); then transfer the archive to the target machine (that has no internet access).
-
Extract the contents of the archive on the target machine.
-
From the folder where the “wheelhouse” folder is now located, run this command:
pip install -r wheelhouse\requirements.txt –no-index –find-links wheelhouse