- pip (default)
- pipenv
- venv
- conda
Install pipenv and create Pipfile
pip install --user pipenv
Add pipenv to $PATH and enable .venv in project directory
# .bashrc || .zshrc
export PATH=$PATH:$HOME/.local/bin
export PIPENV_VENV_IN_PROJECT=1
pipenv init + shell
pipenv shell
Install dev dependencies
pipenv install autopep8 -d
Ctrl + Shift + I
Errno 2: Pipenv searches virtual environment's python binary in wrong path
Solution: replace 'posix_prefix' with 'venv' in file above:
$HOME/.local/lib/python3.10/site-packages/pipenv/environment.py