@@ -32,23 +32,23 @@ Basic Usage
32
32
.. code-block :: console
33
33
34
34
$ cd my_project_folder
35
- $ virtualenv venv
35
+ $ virtualenv my_project
36
36
37
- ``virtualenv venv `` will create a folder in the current directory which will
37
+ ``virtualenv my_project `` will create a folder in the current directory which will
38
38
contain the Python executable files, and a copy of the ``pip `` library which you
39
39
can use to install other packages. The name of the virtual environment (in this
40
- case, it was ``venv ``) can be anything; omitting the name will place the files
40
+ case, it was ``my_project ``) can be anything; omitting the name will place the files
41
41
in the current directory instead.
42
42
43
43
This creates a copy of Python in whichever directory you ran the command in,
44
- placing it in a folder named :file: `venv `.
44
+ placing it in a folder named :file: `my_project `.
45
45
46
46
You can also use the Python interpreter of your choice (like
47
47
``python2.7 ``).
48
48
49
49
.. code-block :: console
50
50
51
- $ virtualenv -p /usr/bin/python2.7 venv
51
+ $ virtualenv -p /usr/bin/python2.7 my_project
52
52
53
53
or change the interpreter globally with an env variable in ``~/.bashrc ``:
54
54
@@ -60,12 +60,12 @@ or change the interpreter globally with an env variable in ``~/.bashrc``:
60
60
61
61
.. code-block :: console
62
62
63
- $ source venv /bin/activate
63
+ $ source my_project /bin/activate
64
64
65
65
The name of the current virtual environment will now appear on the left of
66
- the prompt (e.g. ``(venv )Your-Computer:your_project UserName$) `` to let you know
66
+ the prompt (e.g. ``(my_project )Your-Computer:your_project UserName$) `` to let you know
67
67
that it's active. From now on, any package that you install using pip will be
68
- placed in the ``venv `` folder, isolated from the global Python installation.
68
+ placed in the ``my_project `` folder, isolated from the global Python installation.
69
69
70
70
Install packages as usual, for example:
71
71
@@ -84,7 +84,7 @@ This puts you back to the system's default Python interpreter with all its
84
84
installed libraries.
85
85
86
86
To delete a virtual environment, just delete its folder. (In this case,
87
- it would be ``rm -rf venv ``.)
87
+ it would be ``rm -rf my_project ``.)
88
88
89
89
After a while, though, you might end up with a lot of virtual environments
90
90
littered across your system, and its possible you'll forget their names or
@@ -158,15 +158,15 @@ Basic Usage
158
158
159
159
.. code-block :: console
160
160
161
- $ mkvirtualenv venv
161
+ $ mkvirtualenv my_project
162
162
163
- This creates the :file: `venv ` folder inside :file: `~/Envs `.
163
+ This creates the :file: `my_project ` folder inside :file: `~/Envs `.
164
164
165
165
2. Work on a virtual environment:
166
166
167
167
.. code-block :: console
168
168
169
- $ workon venv
169
+ $ workon my_project
170
170
171
171
Alternatively, you can make a project, which creates the virtual environment,
172
172
and also a project directory inside ``$PROJECT_HOME ``, which is ``cd `` -ed into
0 commit comments