Using pip
pipenv
should be in your PATH if you installed it using pip
as a user install, as recommended in the docs:
pip install --user pipenv
If it still isn't available, you'll need to add the user base's binary directory to your PATH:
- UNIX default:
~/.local
- MacOS Framework builds:
~/Library/Python/X.Y
- Windows:
%APPDATA%\Python
You can read more about this in the Python docs on site.USER_BASE
.
Using Homebrew
If you're using Homebrew, then another option is to install pipenv
like so:
brew install pipenv
This installs it globally. Since pipenv
can manage even different python versions via pyenv
, it's preferable to have it set up like this instead of installing it only for a specific python version using pip
.
However, this method is discouraged according to the pipenv
documentation:
Homebrew installation is discouraged because each time the Homebrew Python is upgraded, which Pipenv depends on, users have to re-install Pipenv, and perhaps all virtual environments managed by it.