Skip to content

Commit 300c5a9

Browse files
committed
Updates how to create virtualenv
1 parent aa7908a commit 300c5a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/virtualenv.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Virtual Python Environment or venv is a Python environment which will help you t
99
Installation
1010
============
1111

12-
In Python3 now there is a command called *pyvenv* which can be used to create virtual environments.
12+
In Python3 we can use the *venv* module to create virtual environments.
1313

1414
Usage
1515
=====
@@ -21,7 +21,7 @@ The following commands will create an env called virt1.
2121
::
2222

2323
$ cd virtual
24-
$ pyvenv virt1
24+
$ python3 -m venv virt1
2525
$
2626

2727
Now we can activate the virt1 environment.
@@ -56,7 +56,7 @@ Now we will create another virtual environment *virt2* where we will install the
5656

5757
::
5858

59-
$ pyvenv virt2
59+
$ python3 -m venv virt2
6060
$ source virt2/bin/activate
6161
(virt2)$
6262
(virt2)$ pip install redis==2.4

0 commit comments

Comments
 (0)