File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -99,21 +99,21 @@ It solves the "Project X depends on version 1.x but, Project Y needs 4.x" dilemm
99
99
100
100
`virtualenv <http://www.virtualenv.org/en/latest/index.html >`_ creates
101
101
a folder which contains all the necessary executables to contain the
102
- packages that a Python project would need. An example workflow:
102
+ packages that a Python project would need. An example workflow is given.
103
103
104
- Install virtualenv:
104
+ Install virtualenv
105
105
106
106
::
107
107
108
108
$ pip install virtualenv
109
109
110
- or, depending on what's available:
110
+ or, depending on what's available
111
111
112
112
::
113
113
114
114
$ easy_install virtualenv
115
115
116
- Create a virtual environment for a project:
116
+ Create a virtual environment for a project
117
117
118
118
::
119
119
@@ -142,11 +142,14 @@ The name of the current virtual environment will now appear on the left
142
142
of the prompt (e.g. ``(venv)Your-Computer:your_project UserName$ ``) to
143
143
let you know that it's active. From now on, any package that you install
144
144
using ``pip `` will be placed in the venv folder, isolated from the global
145
- Python installation.
145
+ Python installation. Install packages as usual.
146
+
147
+ ::
148
+ $ pip install requests
146
149
147
150
To stop using an environment simply type ``deactivate ``. To remove the
148
151
environment, just remove the directory it was installed into. (In this
149
- case, it would be ``rm -rf venv ``.
152
+ case, it would be ``rm -rf venv ``) .
150
153
151
154
Other Notes
152
155
~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments