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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay