How to Manually Install Python Packages

How to Manually Install Python Packages

Most Python packages are now designed to be compatible with Python’s pip package manager. But if you have a package that is not compatible with pip, you’ll need manually install Python packages. Here’s how.

Python Installation Checklist

Before installing any package, you should always ensure that a Python installation containing the necessary files needed for installing packages is in place by following the Installation Requirements.

Packages That Cannot be Installed with Pip

Preliminary Steps to take:

  1. Download the package and extract it into a local directory.
  2. If the package includes its own set of installation instructions, they should be followed. Otherwise, the most common method for manually installing a package is to implement

Installing Python Packages with

To install a package that includes a file, open a command or terminal window and: 

  1. cd into the root directory where is located 
  2. Enter: python install Build Environment

Packages installed with have build requirements that developers must adhere to. However, some requirements are optional.


  • Ensure that an up-to-date version of setuptools is installed:
python -m pip install --upgrade setuptools
  •  Include install_requires keyword arguments in install_requires is a setuptools keyword used to specify minimum package requirements. For example:
install_requires=['<packagename>'],  # Optional keyword

Complete package build requirements for a based installation are outlined by PyPA (Python Packaging Authority) in ‘Sample Project’.

Sample Project

Sample Project is a template package with a file for manual installation of a package. The file is  annotated with comments for customizing the script, and for the overall package build environment. [ ]

Sample Project is based on the setuptools package: “A setuptools based setup module.” ] is the build script for packages built with setuptools. Example (Non-Annotated)

import setuptools

with open("", "r") as fh:

    long_description =


    name="<template-package-username>", # Replace with your username




    description="<Template package>",






        "Programming Language :: Python :: 3",

        "License :: OSI Approved :: MIT License",

        "Operating System :: OS Independent",




Try a faster way of installing Python packages for Windows. Get ActivePython or build your own Python runtime with the packages you need. Get started free on the ActiveState Platform.

Related Quick Reads:

How to Install Python Packages using a Script

How to Update All Python Packages

Katie Chang