Skip to content

Instantly share code, notes, and snippets.

@gigadot
Last active February 16, 2020 09:07
Show Gist options
  • Save gigadot/e2d2f18fef20ab407674118aa57f1ab0 to your computer and use it in GitHub Desktop.
Save gigadot/e2d2f18fef20ab407674118aa57f1ab0 to your computer and use it in GitHub Desktop.

Instruction

  1. Download and install python from https://www.python.org/downloads/ (Do not forget to check "Add Python 3.8 to PATH")
  2. 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
  1. 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.

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