I'm not sure if this will work, but it's worth a try.
First install all of the packages that you need on a computer with internet access, using pip
Edited 9:02 PM DST Forgot important step
First install all of the packages that you need on a computer with internet access, using pip
- All of the following on computer with internet:
- create a virtual environment In a new directory, using python 3.8.5 with
python -m venv venv
- activate the virtual environment with command:
. ./venv/bin/acctivate
- Upgrade pip to eliminate annoying warnings:
pip install --upgrade pip
- check to see if the packages are already installed on the internet computer with
pip list
- download missing packages with
pip install packagename
- copy all missing (only) packages from venv/lib/python3.8/site-packages to thumb drive in a lib/site_packages directory.
- Do the same for venv/lib64/python3.8/site-packages and save on thumb drive lib64/site_packages directory.
- libraries have to be installed with yum, or apt-get (depending on your distro, can check with
which yum
orwhich apt
- for these libraries, first see if they are already installed,
look in /usr/share/doc/ if there, create a user/share/doc directory (on thumb drive) and copy there
- if not there install (preferable to use synaptic package manager, but you can also use:
sudo apt-get install libffi-dev
do the same for all libraries and then copy to thumb drive
deactivate
- remove venv diretory you created earlier.
- create a virtual environment In a new directory, using python 3.8.5 with
- on computer with out internet:
- copy libaries from thumb drive to /usr/share/doc/ (use sudo)
- copy pip files to venv/lib/python3.8/site-packages and venv/lib64/python3.8/site-packages respectively.
- copy libaries from thumb drive to /usr/share/doc/ (use sudo)
Edited 9:02 PM DST Forgot important step