Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aleksseven/0e223ef445c3ebe6a5f531c99b191201 to your computer and use it in GitHub Desktop.
Save aleksseven/0e223ef445c3ebe6a5f531c99b191201 to your computer and use it in GitHub Desktop.

Installation of pipenv on Ubuntu 16.04, 18.04, 20.04

1. Add ~/.local/bin to PATH

For bash

echo 'export PATH="${HOME}/.local/bin:$PATH"' >> ~/.bashrc

For zsh

echo 'export PATH="${HOME}/.local/bin:$PATH"' >> ~/.zshrc

2. Install pip if not already installed

Python3

sudo apt install python3-pip

Python 2

sudo apt install python-pip

3. Install pipenv

For Python3:

python3 -m pip install --user pipenv

For python2:

python -m pip install --user pipenv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment