Skip to content

Commit

Permalink
Merge pull request #22 from bgroff/master
Browse files Browse the repository at this point in the history
--system-site-packages in place of --no-site-packages
  • Loading branch information
yasoob committed Aug 17, 2015
2 parents 7e948b0 + 07cfb81 commit 60bae6e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions virtual_environment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,16 @@ decision.

Do you want this virtualenv to use packages from your system
``site-packages`` or install them in the virtualenv’s site-packages? By
default, virtualenv will symlink to your system’s ``site-packages`` if
you install a package in the virtualenv that is already installed on
your system. If you want a totally isolated ``virtualenv`` then you’ll
want to do the latter. To do this, you pass in the
``-–no-site-packages`` switch when creating your virtualenv like this:
default, virtualenv will not give access to the global ``site-packages``.
If you want your ``virtualenv`` to have access to your systems
``site-packages`` use the ``--system-site-packages`` switch when creating
your virtualenv like this:

.. code:: python
$ virtualenv --no-site-packages mycoolproject
$ virtualenv --system-site-packages mycoolproject
Now you can install any library without disturbing the global libraries
or the libraries of the other environments. You can turn off the ``env``
by typing:
You can turn off the ``env`` by typing:

.. code:: python
Expand Down

0 comments on commit 60bae6e

Please sign in to comment.