PIPENV(1)
π NAME π
okay so, bestie, welcome to pipenv(1) π
β that's the man page, that's the whole vibe. It's the Python package manager based on virtual env and Pipfiles. That's it. That's the name section. Periodt. πβ¨
πΈ SYNOPSIS πΈ
So like, this guide is your comprehensive instructions for installing Pipenv on various platforms and environments. Follow whichever approach best suits your system and your requirements, bestie β there is no single right path, there's just your path π«Ά.
π PREREQUISITES π
Before you even think about installing Pipenv, make sure you've got Python and pip chillin' on your system. Can't build the castle without bricks, yk?
π Verifying Python Installation
Check that Python is installed and reachable from your command line:
$ python --version
Python 3.10.4
You should see output showing your Python version β like the above β¨. If you do not have Python installed, go download and install the latest version from python.org. No cap, it's one click, go do it π¦
π Verifying pip Installation
Make sure pip is around too:
$ pip --version
pip 22.1.2
If pip is not installed, you can install it by following the pip installation guide. Very demure, very mindful π
π INSTALLATION METHODS π
π Recommended: Isolated Virtual Environment Installation
Okay so this is the important tea β. Modern Python installations (Python 3.11+ on recent Linux distributions like Ubuntu 24.04, Fedora 38+) enforce PEP 668, which straight-up prevents installing packages with pip install --user. The recommended approach is to install Pipenv in its own isolated virtual environment. Main character energy fr fr π
β¨ Option 1: Dedicated Pipenv Virtual Environment (Recommended)
Create a dedicated virtual environment for pipenv that auto-activates in your shell:
# Create a dedicated venv for pipenv
$ python3 -m venv ~/.pipenv-venv
# Install pipenv in this venv
$ ~/.pipenv-venv/bin/pip install pipenv
# Add to your shell configuration (~/.bashrc, ~/.zshrc, or ~/.profile)
$ echo 'export PIPENV_IGNORE_VIRTUALENVS=1' >> ~/.bashrc
$ echo 'export PATH="$HOME/.pipenv-venv/bin:$PATH"' >> ~/.bashrc
# Reload your shell
$ source ~/.bashrc
The PIPENV_IGNORE_VIRTUALENVS=1 setting makes sure pipenv still creates and manages separate virtual environments for your projects. Iconic behavior honestly π
π§ Option 2: Per-Project Bootstrap
For CI/CD, or whenever you want pipenv isolated per-project:
$ python3 -m venv .venv
$ source .venv/bin/activate # On Windows: .venv\Scripts\activate
$ pip install pipenv
$ pipenv install
πΈ Legacy: User Installation
On older systems that don't enforce PEP 668, you can still use user installation:
$ pip install --user pipenv
β οΈ WARNING: This method no longer works on modern Linux distributions (Ubuntu 24.04+, Fedora 38+) due to PEP 668. Use the isolated virtual environment approach above instead. This one is giving deprecated, bestie π
π¦ Adding Pipenv to PATH
If you used the legacy --user installation, you may need to add the user site-packages binary directory to your PATH. Annoying but necessary, bestie π
π§ On Linux and macOS
Find the user base binary directory:
$ python -m site --user-base
/home/username/.local
Add the bin directory to your PATH by adding this line to your shell configuration file (e.g., ~/.bashrc, ~/.zshrc, or ~/.profile):
export PATH="$HOME/.local/bin:$PATH"
Then reload your shell configuration:
$ source ~/.bashrc # or ~/.zshrc, ~/.profile, etc.
πͺ On Windows
Find the user site-packages directory:
> python -m site --user-site
C:\Users\Username\AppData\Roaming\Python\Python310\site-packages
Replace site-packages with Scripts in the path, and add it to your PATH environment variable:
- Press Win + X and select "System"
- Click "Advanced system settings"
- Click "Environment Variables"
- Under "User variables", select "Path" and click "Edit"
- Add the path (e.g.,
C:\Users\Username\AppData\Roaming\Python\Python310\Scripts) - Click "OK" to save changes
You may need to restart your terminal or computer for the PATH changes to take effect. Classic Windows moment π
π Alternative: System-Wide Installation
If you have administrator privileges and want to install Pipenv system-wide:
# On Linux/macOS
$ sudo pip install pipenv
# On Windows (in an Administrator command prompt)
> pip install pipenv
β οΈ WARNING: System-wide installation is not recommended for most users as it can lead to conflicts with your system package manager. Be careful, bestie π¨
π Using Package Managers
π macOS with Homebrew
$ brew install pipenv
π NOTE: Homebrew installation is discouraged because it works better to install pipenv using pip on macOS. Just so you know π
π§ Debian/Ubuntu
$ sudo apt update
$ sudo apt install pipenv
π© Fedora
$ sudo dnf install pipenv
π FreeBSD
$ pkg install py39-pipenv
π§ Gentoo
$ sudo emerge pipenv
π» Void Linux
$ sudo xbps-install -S python3-pipenv
π Using pipx
pipx is a tool to install and run Python applications in isolated environments:
# Install pipx
$ pip install --user pipx
$ python -m pipx ensurepath
# Install Pipenv using pipx
$ pipx install pipenv
This is a good alternative to the --user installation method, especially if you use multiple Python command-line tools. Lowkey the move π«Ά
π Using Python Module
You can also run Pipenv as a Python module:
$ python -m pip install pipenv
$ python -m pipenv
This approach is useful when you have multiple Python versions installed and want to ensure you're using a specific one. Chef's kiss for version control β¨
β VERIFYING INSTALLATION β
After installation, verify that Pipenv is working correctly:
$ pipenv --version
pipenv, version 2022.5.2
If you see the version number, Pipenv is installed correctly. Vibe check: passed β π₯
π₯ UPGRADING PIPENV π₯
To upgrade an existing Pipenv installation:
# User installation
$ pip install --user --upgrade pipenv
# System-wide installation
$ sudo pip install --upgrade pipenv
# Homebrew
$ brew upgrade pipenv
# pipx
$ pipx upgrade pipenv
Stay fresh, bestie πΈ
π― INSTALLING SPECIFIC VERSIONS π―
If you need a specific version of Pipenv:
$ pip install --user pipenv==2022.1.8
Pinning? Very mindful. Very demure π
π§ INSTALLATION IN VIRTUAL ENVIRONMENTS π§
You can install Pipenv inside a virtual environment, although this is less common:
$ python -m venv pipenv-venv
$ source pipenv-venv/bin/activate # On Windows: pipenv-venv\Scripts\activate
(pipenv-venv) $ pip install pipenv
π³ DOCKER INSTALLATION π³
For Docker environments, you can install Pipenv right in your Dockerfile:
FROM python:3.10-slim
# Install pipenv
RUN pip install pipenv
# Set working directory
WORKDIR /app
# Copy Pipfile and Pipfile.lock
COPY Pipfile Pipfile.lock ./
# Install dependencies
RUN pipenv install --system --deploy
# Copy application code
COPY . .
# Run the application
CMD ["python", "app.py"]
Containers? We love a reproducible queen πβ¨
π CI/CD INSTALLATION π
For continuous integration environments:
# GitHub Actions example
name: Python CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv
- name: Install dependencies
run: |
pipenv install --dev
- name: Run tests
run: |
pipenv run pytest
Automated pipelines that pass on the first try? That's the dream ππ
π οΈ TROUBLESHOOTING π οΈ
π΅ Command Not Found
If you get a "command not found" error after installation:
- Check if Pipenv is installed in your user site-packages:
$ python -m pipenv --version
- If that works, add the user site-packages
bindirectory to yourPATHas described above. - Try restarting your terminal or computer.
π Permission Errors
If you encounter permission errors during installation:
- Use the
--userflag to install in your home directory:
$ pip install --user pipenv
- If using
sudo, ensure you're using it correctly:
$ sudo pip install pipenv
- Check file permissions in your installation directories.
π Python Version Compatibility
Pipenv requires Python 3.7 or newer. If you're using an older version, you'll need to upgrade Python first. Sorry babe, that's the rule π«
π pip Not Found
If pip is not found:
- Install pip:
# Download get-pip.py
$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
# Install pip
$ python get-pip.py --user
- Ensure pip is in your
PATH.
π« BEST PRACTICES π«
- Use isolated virtual environment installation on modern systems to avoid PEP 668 restrictions.
- Keep Pipenv updated to benefit from the latest features and bug fixes.
- Set
PIPENV_IGNORE_VIRTUALENVS=1if you install pipenv in a dedicated venv, so it still manages project-specific environments. - Add Pipenv to your project's development setup instructions to ensure all developers use the same environment.
- Use version control for your
PipfileandPipfile.lockto ensure consistent environments across your team.
Do all five and you're literally the team's favorite person, no cap π«Άπ
π NEXT STEPS π
Now that you have Pipenv installed, you can:
- Create a new project:
pipenv --python 3.10 - Install packages:
pipenv install requests - Activate the environment:
- Spawn a subshell:
pipenv shell - Or activate in current shell:
eval $(pipenv activate)
- Spawn a subshell:
- Run commands:
pipenv run python script.py
For more detailed usage instructions, see the Quick Start Guide and Commands Reference. Go be great, bestie π β¨
βοΈ AUTHOR βοΈ
Python Packaging Authority
π COPYRIGHT π
2020. A project founded by Kenneth Reitz and maintained by Python Packaging Authority (PyPA) β that's https://www.pypa.io/en/latest/ if you wanna peek π.
okay and one last thing bestie, the receipts: this was page version 2026.0.3 from Dec 17, 2025, and it's the PIPENV(1) page, k bye ilysm πππ¦
π¦ where this page comes from
- ubuntu stonking: pipenv 2026.0.3+ds-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms