Search code examples
pythonwindowspipeasy-install

How to download and install pip for python in two steps?


I have a strange situation where I have a normal user account on windows where I have access to the internet and then an admin account without internet access.

Given this, how can I split the installation of easy_install and pip into two steps and get it installed on my machine?


Solution

  • You can combine as follows:

    pip install -d <dir-name> <package-name>
    pip install -f <dir-name> --no-index <package-name>
    

    The 1st one will download the packages locally and the 2nd one will install them. Make sure you create the directory first.