Skip to content

Commit 1ad8877

Browse files
authored
Merge pull request #975 from Christofosho/master
Minor Inconsistency and Grammar Fixes
2 parents 1723ecb + ff05d2f commit 1ad8877

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

docs/dev/virtualenvs.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ tutorial) and run:
118118

119119
.. code-block:: console
120120
121-
$ cd myproject
121+
$ cd project_folder
122122
$ pipenv install requests
123123
124124
Pipenv will install the excellent `Requests`_ library and create a ``Pipfile``
@@ -225,7 +225,7 @@ Basic Usage
225225

226226
.. code-block:: console
227227
228-
$ cd my_project_folder
228+
$ cd project_folder
229229
$ virtualenv venv
230230
231231
``virtualenv venv`` will create a folder in the current directory which will
@@ -260,19 +260,19 @@ or change the interpreter globally with an env variable in ``~/.bashrc``:
260260
$ source venv/bin/activate
261261
262262
The name of the current virtual environment will now appear on the left of
263-
the prompt (e.g. ``(venv)Your-Computer:your_project UserName$)`` to let you know
263+
the prompt (e.g. ``(venv)Your-Computer:project_folder UserName$)`` to let you know
264264
that it's active. From now on, any package that you install using pip will be
265265
placed in the ``venv`` folder, isolated from the global Python installation.
266266

267-
For Windows, same command which is mentioned in step 1 can be used for creation of virtual environment. But, to activate, we use the following command.
267+
For Windows, the same command mentioned in step 1 can be used to create a virtual environment. However, activating the environment requires a slightly different command.
268268

269-
Assuming that you are in project directory:
269+
Assuming that you are in your project directory:
270270

271-
.. code-block:: powershell
271+
.. code-block:: console
272272
273-
PS C:\Users\suryav> \venv\Scripts\activate
273+
C:\Users\SomeUser\project_folder> venv\Scripts\activate
274274
275-
Install packages as usual, for example:
275+
Install packages using the ``pip`` command:
276276

277277
.. code-block:: console
278278
@@ -283,13 +283,13 @@ Install packages as usual, for example:
283283

284284
.. code-block:: console
285285
286-
$ deactivate
286+
$ deactivate
287287
288288
This puts you back to the system's default Python interpreter with all its
289289
installed libraries.
290290

291291
To delete a virtual environment, just delete its folder. (In this case,
292-
it would be ``rm -rf my_project``.)
292+
it would be ``rm -rf project_folder``.)
293293

294294
After a while, though, you might end up with a lot of virtual environments
295295
littered across your system, and it's possible you'll forget their names or
@@ -366,23 +366,23 @@ Basic Usage
366366

367367
.. code-block:: console
368368
369-
$ mkvirtualenv my_project
369+
$ mkvirtualenv project_folder
370370
371-
This creates the :file:`my_project` folder inside :file:`~/Envs`.
371+
This creates the :file:`project_folder` folder inside :file:`~/Envs`.
372372

373373
2. Work on a virtual environment:
374374

375375
.. code-block:: console
376376
377-
$ workon my_project
377+
$ workon project_folder
378378
379379
Alternatively, you can make a project, which creates the virtual environment,
380380
and also a project directory inside ``$WORKON_HOME``, which is ``cd``-ed into
381-
when you ``workon myproject``.
381+
when you ``workon project_folder``.
382382

383383
.. code-block:: console
384384
385-
$ mkproject myproject
385+
$ mkproject project_folder
386386
387387
**virtualenvwrapper** provides tab-completion on environment names. It really
388388
helps when you have a lot of environments and have trouble remembering their

0 commit comments

Comments
 (0)