Skip to content

Commit 51c32b8

Browse files
author
Kenneth Reitz
committed
dev env cleanup
1 parent d05c08c commit 51c32b8

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

docs/starting/dev-env.rst

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -113,21 +113,12 @@ It solves the "Project X depends on version 1.x but, Project Y needs 4.x" dilemm
113113
a folder which contains all the necessary executables to contain the
114114
packages that a Python project would need. An example workflow is given.
115115

116-
Install virtualenv
117-
118-
::
116+
Install virtualenv::
119117

120118
$ pip install virtualenv
121119

122-
or, depending on what's available
123-
124-
::
125120

126-
$ easy_install virtualenv
127-
128-
Create a virtual environment for a project
129-
130-
::
121+
Create a virtual environment for a project::
131122

132123
$ cd my_project
133124
$ virtualenv venv
@@ -138,25 +129,16 @@ library which you can use to install other packages. The name of the
138129
virtual environment (in this case, it was ``venv``) can be anything;
139130
omitting the name will place the files in the current directory instead.
140131

141-
In order the start using the virtual environment, run
142-
143-
::
132+
In order the start using the virtual environment, run::
144133

145134
$ source venv/bin/activate
146135

147-
or
148-
149-
::
150-
151-
$ . venv/bin/activate
152136

153137
The name of the current virtual environment will now appear on the left
154138
of the prompt (e.g. ``(venv)Your-Computer:your_project UserName$``) to
155139
let you know that it's active. From now on, any package that you install
156140
using ``pip`` will be placed in the venv folder, isolated from the global
157-
Python installation. Install packages as usual.
158-
159-
::
141+
Python installation. Install packages as usual::
160142

161143
$ pip install requests
162144

0 commit comments

Comments
 (0)