From afa74782c5fdc08c16321d5d031a1e47bad848e0 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 30 Sep 2017 09:15:40 -0400 Subject: [PATCH] Update virtualenvs.rst --- docs/dev/virtualenvs.rst | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/docs/dev/virtualenvs.rst b/docs/dev/virtualenvs.rst index 6dd124b..65dc8b1 100644 --- a/docs/dev/virtualenvs.rst +++ b/docs/dev/virtualenvs.rst @@ -82,13 +82,23 @@ Use ``pip`` to install Pipenv: .. Note:: This does a `user installation`_ to prevent breaking any system-wide packages. If ``pipenv`` isn't available in your shell after installation, - you'll need to add the `user base`_'s ``bin`` directory to your ``PATH``. - You can find the user base by running ``python -m site`` which will print - site information including the user base. For example, on Linux this will - return ``USER_BASE: '~/.local'`` so you'll need to add ``~/.local/bin`` to - your ``PATH``. On Linux and macOS you can set your ``PATH`` permanently - by `modifying ~/.profile`_. On Windows you can set the user - ``PATH`` permanently in the `Control Panel`_. + you'll need to add the `user base`_'s binary directory to your ``PATH``. + + On Linux and macOS you can find the user base binary directory by running + ``python -m site --user-base`` and adding ``bin`` to the end. For example, + this will typically print ``~/.local`` (with ``~`` expanded to the + absolute path to your home directory) so you'll need to add + ``~/.local/bin`` to your ``PATH``. You can set your ``PATH`` permanently by + `modifying ~/.profile`_. + + On Windows you can find the user base binary directory by running + ``py -m site --user-site`` and replacing ``site-packages`` with + ``Scripts``. For example, this could return + ``C:\Users\Username\AppData\Roaming\Python36\site-packages`` so you would + need to set your ``PATH`` to include + ``C:\Users\Username\AppData\Roaming\Python36\Scripts``. You can set your + user ``PATH`` permanently in the `Control Panel`_. You may need to log + out for the ``PATH`` changes to take effect. .. _npm: https://www.npmjs.com/ .. _bundler: http://bundler.io/