Install python package offline in ubuntu without network:

 

General package installation method:

  1. Download the corresponding tar.gz file (take numpy-9.2.tar.gz as an example)
  2. tar –zxvf numpy-1.9.tar.gz
  3. cd numpy-1.9.2
  4. python setup.py install

 

But sometimes there are situations where some packages are not working, such as jupyter-client

At this time, replace the fourth step with

python  setup.py install --single-version-externally-managed --root=/

 

If it doesn’t work, download the whl file (such as jsonschema)

pip install jsonschema-3.2.0-py2.py3-none-any.whl -f ./ --no-index --no-deps

 

Guess you like

Origin blog.csdn.net/qq_36321330/article/details/114364288