PIP (Python Package Manager)

pip is a command-line tool used to install and manage Python packages from the Python Package Index (PyPI) or local sources. It resolves dependencies, installs packages into the Python environment, and makes them available to scripts and applications.

This reference reflects a lightweight usage pattern. I primarily use Python for scripting and small utilities and avoid heavier dependency frameworks or environment managers when they are not strictly necessary. As a result, my pip usage is intentionally narrow and focused on clarity and speed.

General Commands

install

Installs a package into the active Python environment (global or virtual, depending on configuration).

pip install package_name

Installed packages are placed in the environment’s site-packages directory and made available to all scripts using that interpreter.

Install Local as Global

Installs the current project into the active Python environment in editable mode.

pip install -e .

These use the same uninstall command as regular pip packages. Editable installs create a symbolic link to the project source rather than copying files. This allows changes to the source code to take effect immediately without reinstalling the package. This is useful during development and for small internal tools.

Uninstall

Removes a package from the active Python environment.

pip uninstall package_name

This cleanly removes the package and its installed files but does not affect dependent packages unless they are explicitly removed.

Provider