Skip to content

Commit 447de3e

Browse files
committed
Add info about Python 3 virtual environments
1 parent 8c7df80 commit 447de3e

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

help_docs/virtualenv_instructions.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,28 @@ python -m pip install --upgrade virtualenv
2424
python -m pip install --upgrade virtualenvwrapper-win
2525
```
2626

27-
### **Step 2**: Now use VirtualEnv or VirtualEnvWrapper to create a virtual environment:
27+
### **Step 2**: Now create a virtual environment:
2828

2929
#### macOS / Linux / Windows:
3030

31+
* Using ``mkvirtualenv``:
3132
```bash
32-
mkvirtualenv seleniumbase
33+
mkvirtualenv seleniumbase_venv
3334
```
3435
(If you have multiple versions of Python installed on your machine, and you want your virtual environment to use a specific Python version, add ``--python=PATH_TO_PYTHON_EXE`` with the Python executable to use.)
3536

37+
* Using ``virtualenv``:
38+
```bash
39+
virtualenv seleniumbase_venv
40+
source seleniumbase_venv/bin/activate
41+
```
42+
43+
* (Python 3) Using ``mvenv``:
44+
```bash
45+
python3 -mvenv seleniumbase_venv
46+
source seleniumbase_venv/bin/activate
47+
```
48+
3649
---
3750

3851
If you ever need to leave your virtual environment, use the following command:
@@ -44,7 +57,7 @@ deactivate
4457
You can always jump back into your virtual environment later:
4558

4659
```bash
47-
workon seleniumbase
60+
workon seleniumbase_venv
4861
```
4962

5063
To list all existing virtual environments:

0 commit comments

Comments
 (0)