Installing pip3/pipenv in WSL

June 07, 2021

pip3 is required to install pipenv. In our case, it’s used to run some stuff in the python environment like seeding the database.

Terminal window
sudo apt update
sudo apt upgrade
sudo apt install python3 python3-pip ipython3

Source ↗️

Then to install pipenv and start it

Terminal window
sudo pip3 install pipenv
# start pipenv
pipenv shell

Some errors I encountered when starting pipenv shell

Warning: Python 3.7 was not found on your system…
Terminal window
# run this and rerurn the pipenv shell command
pipenv --three --python=`which python3`