@@ -36,15 +36,16 @@ In order to use this library, you first need to go through the following steps:
36
36
Installation
37
37
~~~~~~~~~~~~
38
38
39
- Install this library in a `virtualenv `_ using pip. `virtualenv `_ is a tool to
40
- create isolated Python environments. The basic problem it addresses is one of
41
- dependencies and versions, and indirectly permissions.
39
+ Install this library in a virtual environment using `venv `_. `venv `_ is a tool that
40
+ creates isolated Python environments. These isolated environments can have separate
41
+ versions of Python packages, which allows you to isolate one project's dependencies
42
+ from the dependencies of other projects.
42
43
43
- With `virtualenv `_, it's possible to install this library without needing system
44
+ With `venv `_, it's possible to install this library without needing system
44
45
install permissions, and without clashing with the installed system
45
46
dependencies.
46
47
47
- .. _`virtualenv ` : https://virtualenv.pypa.io/en/latest/
48
+ .. _`venv ` : https://docs.python.org/3/library/venv.html
48
49
49
50
50
51
Code samples and snippets
@@ -77,21 +78,19 @@ Mac/Linux
77
78
78
79
.. code-block :: console
79
80
80
- pip install virtualenv
81
- virtualenv <your-env>
81
+ python3 -m venv <your-env>
82
82
source <your-env>/bin/activate
83
- <your-env>/bin/ pip install {{ metadata['repo']['distribution_name'] }}
83
+ pip install {{ metadata['repo']['distribution_name'] }}
84
84
85
85
86
86
Windows
87
87
^^^^^^^
88
88
89
89
.. code-block :: console
90
90
91
- pip install virtualenv
92
- virtualenv <your-env>
93
- <your-env>\Scripts\activate
94
- <your-env>\Scripts\pip.exe install {{ metadata['repo']['distribution_name'] }}
91
+ py -m venv <your-env>
92
+ .\<your-env>\Scripts\activate
93
+ pip install {{ metadata['repo']['distribution_name'] }}
95
94
96
95
Next Steps
97
96
~~~~~~~~~~
0 commit comments