Skip to content
Myr

Add windows / osx tabs.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by unknown · committed by unknown · parent 5a6cde9 · Browse files · 1 file+18 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+18 added−9 removed

  • other:+18 added−9 removed

1 file+18 added−9 removed

modified:docs/virtualenv.rst+18 added-9 removed
1 unmodified line
23Virtualenv4=========================56Why use virtualenv?6Why Use Virtualenv?7-------------------------89You should use `Virtualenv <https://virtualenv.pypa.io/en/latest/>`_ because:1011* It allows you to install multiple versions of the same dependency.1213* If you have an operating system version of python, it prevents you from changing its dependencies and potentially messing up your os.13* If you have an operating system version of Python, it prevents you from changing its dependencies and potentially messing up your os.1415How to use virtualenv15How to Use Virtualenv16-----------------------------1718Create your project folder, then a virtualenv within it::19
1 unmodified line
21 $ cd myproject22 $ python3 -m venv .venv2324Now, whenever you want to work on a project, you only have to activate the25corresponding environment. On OS X and Linux, do the following::25corresponding environment.2627 $ . .venv/bin/activate28 (venv) $27.. tabs::2830On Windows, do the following::29 .. group-tab:: OSX/Linux3032 > .venv\scripts\activate33 (venv) >31 .. code-block:: text3233 $ . .venv/bin/activate34 (venv) $3536 .. group-tab:: Windows3738 .. code-block:: text3940 > .venv\scripts\activate41 (venv) >424344You are now using your virtualenv (notice how the prompt of your shell has changed to show the active environment).4546To install packages in the virtual environment::47
7 unmodified lines