Skip to content
William Zhang edited this page Jan 16, 2019 · 1 revision

Online install

Use pip etc.

Offline install

  1. Search python modules at https://pypi.org/
  2. Download the source packages xxx.tar.gz
  3. Copy to destination machine
  4. Untar it and mv to /usr/lib/python2.7/site-packages
  5. cd site-packages/xxx
  6. sudo python setup.py install

If found dependencies and hang on download, install it by hand recursively :-(

requests: certifi urllib3 idna chardet

pycrypto: ?

SimpleHTTPServer

  1. python 2.x

    /usr/lib/python2.7/SimpleHTTPServer.py

  2. python 3.x

    renamed to http.server

$ python -m SimpleHTTPServer
Clone this wiki locally