Fix Python – How to manually install a pypi module without pip/easy_install?


Asked By – lucasg

I want to use the gntp module to display toaster-like notifications for C/C++ software. I want to package all the dependencies for the software to be self-executable on another computer.

The gntp module is only available through the pip installer, which cannot be used (the computer running the software does not have an internet connection)

How can I install it from source?

I would prefer not to force the user to install easy_install/pip and manually add the pip path to the %PATH.

PS: I’m using Python 2.7 on a Windows machine.

Now we will see solution for issue: How to manually install a pypi module without pip/easy_install?


  1. Download the package
  2. unzip it if it is zipped
  3. cd into the directory containing
  4. If there are any installation instructions contained in documentation, read and follow the instructions
  5. type in python install

You may need administrator privileges for step 5. What you do here depends on your operating system. For example in Ubuntu you would say sudo python install

EDIT– thanks to kwatford (see first comment)

To bypass the need for administrator privileges during step 5 above you may be able to make use of the --user flag. This way you can install the package only for the current user.

The docs say:

Files will be installed into subdirectories of site.USER_BASE (written as userbase hereafter). This scheme installs pure Python modules and extension modules in the same location (also known as site.USER_SITE).

More details can be found here:

This question is answered By – Sheena

This answer is collected from stackoverflow and reviewed by FixPython community admins, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0