pip Install command

Install from tarball on web

1
2
3
pip install https://pypi.python.org/packages/source/r/requests/
requests-2.3.0.tar.gz

Install from local tarball

1
2
3
wget https://pypi.python.org/packages/source/r/requests/requests-2.3.0.tar.gz
pip install requests-2.3.0.tar.gz

Install from local folder

1
2
3
4
5
tar -zxvf requests-2.3.0.tar.gz
cd requests-2.3.0
pip install .

You can delete the requests-2.3.0 folder.

Install from local folder (editable mode)

1
pip install -e .

This installs the package in editable mode. Any changes you make to the code will immediately apply across the system. This is useful if you are the package developer and want to test changes. It also means you won’t be delete the folder without breaking the install.