File tree Expand file tree Collapse file tree 1 file changed +4
-22
lines changed Expand file tree Collapse file tree 1 file changed +4
-22
lines changed Original file line number Diff line number Diff line change @@ -113,21 +113,12 @@ It solves the "Project X depends on version 1.x but, Project Y needs 4.x" dilemm
113113a folder which contains all the necessary executables to contain the
114114packages 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
138129virtual environment (in this case, it was ``venv ``) can be anything;
139130omitting 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
153137The name of the current virtual environment will now appear on the left
154138of the prompt (e.g. ``(venv)Your-Computer:your_project UserName$ ``) to
155139let you know that it's active. From now on, any package that you install
156140using ``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
You can’t perform that action at this time.
0 commit comments