DEV Community

Franz Wong
Franz Wong

Posted on

Install pip offline

Download necessary files

Do the following with a computer WITH internet access

  1. Download get-pip.py from https://bootstrap.pypa.io/get-pip.py

  2. Download wheel (.whl files) from pypi to local machine
    pip: https://pypi.org/project/pip/#files
    setuptools: https://pypi.org/project/setuptools/#files
    wheel: https://pypi.org/project/wheel/#files

  3. Copy get-pip.py and wheel files to the computer without internet access

Install pip

Do the following with a computer WITHOUT internet access

Run the following command

python get-pip.py —no-index —find-links=<directory containing wheel files>
Enter fullscreen mode Exit fullscreen mode

Example:

python get-pip.py —no-index —find-links=/Users/foo/Downloads
Enter fullscreen mode Exit fullscreen mode

Top comments (0)