1. Download the package
  2. unzip it if it is zipped
  3. cd into the directory containing setup.py
  4. If there are any installation instructions contained in documentation, read and follow the instructions OTHERWISE
  5. type in python setup.py 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 setup.py 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: http://docs.python.org/2.7/install/index.html

Answer from Sheena on Stack Overflow
Top answer
1 of 3
189
  1. Download the package
  2. unzip it if it is zipped
  3. cd into the directory containing setup.py
  4. If there are any installation instructions contained in documentation, read and follow the instructions OTHERWISE
  5. type in python setup.py 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 setup.py 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: http://docs.python.org/2.7/install/index.html

2 of 3
6

To further explain Sheena's answer, I needed to have setup-tools installed as a dependency of another tool e.g. more-itertools.

Download

Click the Clone or download button and choose your method. I placed these into a dev/py/libs directory in my user home directory. It does not matter where they are saved, because they will not be installed there.

  • setuptools: https://github.com/pypa/setuptools
  • more-itertools: https://github.com/erikrose/more-itertools

Installing setup-tools

You will need to run the following inside the setup-tools directory.

python bootstrap.py
python setup.py install

General dependencies installation

Now you can navigate to the more-itertools direcotry and install it as normal.

  1. Download the package
  2. Unpackage it if it's an archive
  3. Navigate (cd ...) into the directory containing setup.py
  4. If there are any installation instructions contained in the documentation contained herein, read and follow the instructions OTHERWISE
  5. Type in: python setup.py install
🌐
Reddit
reddit.com › r/learnpython › python without pip
r/learnpython on Reddit: Python without pip
October 31, 2022 -

For security reasons pip is blocked by my employers proxy.

Is there a feasible way to install packages without pip?

I did some reading and found instructions that said to manually download the package and install it via an included setup.py script. However I can't seem to locate those package archives. I searched for paramiko and found the github page with the repository that has all the files but no downloadable package.

Any ideas?

Discussions

python - Install a package without pip - Stack Overflow
I have Python 3.12.3 [MSC v.1938 64 bit (AMD64)] on win32. The connection to servers is blocked on my network so i can't use pip to install packages but I can go to https://pypi.org to download wheel More on stackoverflow.com
🌐 stackoverflow.com
Install packages without pip
In some projects, I came to a situation where I have to add missing python packages to the system. Python (2.7 and 3.8) is available. The content of the packages will be available on the system. Is there a way to make them part of the install without using pip? More on discuss.python.org
🌐 discuss.python.org
1
0
December 18, 2020
Installing libraries and dependencies without Pip
work bike pause swim modern judicious spectacular lavish cover hospital This post was mass deleted and anonymized with Redact More on reddit.com
🌐 r/learnpython
34
49
December 26, 2022
Install packages without pip
Get the same Python version on your local machine, pip wheel pip pandas, copy the .whl files over to your locked down box, python pip-$version-py2.py3-none-any.whl/pip install *.whl. More on reddit.com
🌐 r/Python
6
2
April 25, 2019
🌐
Python
docs.python.org › 3 › installing › index.html
Installing Python modules — Python 3.15.2 documentation
A virtual environment is a semi-isolated Python environment that allows packages to be installed for use by a particular application, rather than being installed system wide. venv is the standard tool for creating virtual environments. It defaults to installing pip into all created virtual environments.
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-install-python-libraries-without-using-the-pip-command
How to install Python libraries without using the pip command? - GeeksforGeeks
October 6, 2021 - The most common practice of installing external libraries in your system is by using the Python pip command. However, there is an alternate method of manually installing Python libraries without using the pip command. In this article, we are going to discuss how to manually install a python package.
🌐
Delft Stack
delftstack.com › home › howto › python › install python package without pip
How to Install Python Package Without Pip | Delft Stack
February 2, 2024 - To install a Python library without using the pip command, we need to download and install the package from pypi.org and run the setup.py file with Python.
Find elsewhere
🌐
Python.org
discuss.python.org › python help
Install packages without pip - Python Help - Discussions on Python.org
December 18, 2020 - I’m working on developing additions to a Ubuntu-based Thinclient. On this closed platform, I have no ability to use apt, dpkg, pip, … to install packages. In some projects, I came to a situation where I have to add missing python packages to the system. Python (2.7 and 3.8) is available.
🌐
Reddit
reddit.com › r/learnpython › installing libraries and dependencies without pip
r/learnpython on Reddit: Installing libraries and dependencies without Pip
December 26, 2022 -

Hi, I'm working with python as a beginner. My employer provided a laptop that has python installed. Since pip is not installed, is there any way to install a package with all its dependencies? (I dont have admin privileges)

EDIT: So I have managed to reinstall python 3.10.6 with pip. But when I try to install a package with pip (using 'pip install pandas'), I'm getting an error mentioning "SSL certificate verification failed". Can this be because of a firewall? because my internet connection is working fine.

🌐
TopDealsNet
stlplaces.com › blog › how-to-install-packages-in-python-without-pip
How to Install Packages In Python Without Pip in 2026?
September 20, 2025 - You may also need to ensure any dependencies required by the packages are also installed using the same approach. To install development dependencies without using pip, you can use the package manager specific to your operating system.
🌐
Reddit
reddit.com › r/python › install packages without pip
r/Python on Reddit: Install packages without pip
April 25, 2019 -

I guess this question comes up frequently, but I didn't find anything that fits my situation.

I'm on a windows machine which is pretty much locked down, now I would like to install a few modules. So I thought I could just pip them, but no, I do not have any pip. Okay, no biggie, manually install pip. No, I cannot connect to the source since the installer from the command line tries to directly connect to the source, but I'm behind a proxy. Now I neither know the proxy name or server or port.

How do install anything in that python build?

I tried to install the pandas module via:

python path\to\module setup.py install

Works fine, but it told me it needs Cython. So I repeated the procedure:

python path\to\module setup.py install

But here I get the error:

can't find '__main__' module in 'path\to\module'

How do I rectify that?

🌐
DropVPS
dropvps.com › home › blog › install python packages offline without pip
Install python packages offline without pip
March 15, 2025 - You can use USB drives, external hard drives, or any other method suitable for file transfer. Now that you have the package files on your offline machine, you can install them manually.
🌐
eUKhost
eukhost.com › home › how to install python 3 libraries without using pip
Install Python Libraries Without pip (Manual & Alternative Methods)
March 25, 2026 - Visit https://pypi.org and search for the required Python library. Open the library’s page and scroll to the Download files section. Download the .tar.gz source distribution file.
🌐
Hackersfriend
hackersfriend.com › articles › how-to-install-python-libraries-without-using-the-pip-command
How to install Python libraries without using the pip command ? - HackersFriend
December 19, 2020 - To install any python library without pip command, we can download the package from pypi.org in and run it's setup.py file using python. This will install the package on your system.
🌐
eUKhost
eukhost.com › home › how to install python libraries without using the pip command
How to Install Python libraries without using the pip command
January 21, 2025 - Nevertheless, installing Python libraries manually can also be done without the pip program. ... Visit the https://pypi.org/ website to locate the installation package.
🌐
Python Forum
python-forum.io › thread-25714.html
Install module without "pip"
I need to use 'openpyxl' module but I can't install it with 'pip' (not available on the system). So far I downloaded and placed 'openpyxl' in the same directory where I run my python script where I added this line: from .openpyxl import Workbook bu...
🌐
Reddit
reddit.com › r/learnpython › how do i install a python package manually without using any package manager?
How do I install a python package manually without using any package manager? : r/learnpython
August 3, 2025 - You don’t need to do anything but add your source folder to PYTHONPATH for it to be picked up as a package. If you feel like you need to “install it” like pip does then yes, you can just follow the same steps.
🌐
Arduino Forum
forum.arduino.cc › community › general discussion › how can we install the python package other than using pip?
How can we install the Python package other than using pip? - General Discussion - Arduino Forum
March 23, 2020 - dear Arduinofellows, first of all - i hope that you are all well and all goes okay the question today is: How can we install the Python package other than using pip?th i run Python on MX-Linux - there is root@mx:/home/martin# python3 --V unknown option --V usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ... Try `python -h' for more information. root@mx:/home/martin# python3 -V Python 3.7.3 root@mx:/home/martin# pip install pandas bash: pip: command not found. i have no pip on...