- Download and install python from https://www.python.org/downloads/ (Do not forget to check "Add Python 3.8 to PATH")
- From https://stackoverflow.com/questions/49740073/installation-of-pipenv-on-windows-fails Update setuptools or pip, just in case.
pip install --upgrade setuptools
pip install --upgrade pip
or on Windows
python -m pip install --upgrade pip
and then installing pipenv with
pip install pipenv
- https://www.jetbrains.com/help/pycharm/pipenv.html Run the following command:
python -m site --user-site
A sample output can be:
C:\Users\jetbrains\AppData\Roaming\Python\Python38\site-packages
Replace site-packages with Scripts in this path to receive a string for adding to the PATH variable, for example:
setx PATH "%PATH%;C:\Users\jetbrains\AppData\Roaming\Python\Python38\Scripts"
setx
is used to set environment variable permanently BUT there is a trimming limit of 1024 characters.