Python 3.9
: use Fedora 34Python 3.10
: use Fedora 35
# 'python' will be the top-level folder and underneath it, modules will be installed
pip install -t python paramiko
zip -9r paramiko-py39.zip python
import sys
# sys.path.append("/opt/third_party")
try:
import paramiko
except ModuleNotFoundError as err:
print(f"{err}")
sys.exit()
client = paramiko.SSHClient()
/opt/python
is in thesys.path
- the
paramiko-py39.zip
mentioned above, will be unzipped into/opt/python