Skip to content

Commit e9d5462

Browse files
committed
Update a ReadMe
1 parent 34cabf2 commit e9d5462

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

help_docs/virtualenv_instructions.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
1-
### Virtual Environment Setup Instructions
1+
## Virtual Environment Tutorial
22

3-
#### First install [VirtualEnv](http://virtualenv.readthedocs.org/en/latest/) or [VirtualEnvWrapper](http://virtualenvwrapper.readthedocs.org/en/latest/) (<i>if not installed</i>):
3+
### **Step 1**: First install [VirtualEnv](http://virtualenv.readthedocs.org/en/latest/) and [VirtualEnvWrapper](http://virtualenvwrapper.readthedocs.org/en/latest/) (<i>if not installed</i>):
4+
5+
### MAC / Linux:
46

5-
MAC / Linux:
67
```bash
78
python -m pip install --upgrade virtualenv
89
python -m pip install --upgrade virtualenvwrapper
10+
export WORKON_HOME=$HOME/.virtualenvs
11+
source /usr/local/bin/virtualenvwrapper.sh
912
```
1013

11-
WINDOWS:
14+
If you add ``source /usr/local/bin/virtualenvwrapper.sh`` to your local bash file (``~/.bash_profile`` on a Mac, or ``~/.bashrc`` on Linux), virtualenvwrapper commands will be available whenever you open a new command prompt. Use the ``source`` command on those files to activate any changes you make.
15+
16+
### WINDOWS:
17+
1218
```bash
1319
python -m pip install --upgrade virtualenv
1420
python -m pip install --upgrade virtualenvwrapper-win
1521
```
1622

17-
#### Now use VirtualEnv or VirtualEnvWrapper to create a virtual environment:
18-
19-
MAC / Linux:
20-
21-
```bash
22-
mkdir -p ~/Envs
23-
virtualenv ~/Envs/seleniumbase
24-
source ~/Envs/seleniumbase/bin/activate
25-
```
23+
### **Step 2**: Now use VirtualEnv or VirtualEnvWrapper to create a virtual environment:
2624

27-
WINDOWS:
25+
### MAC / Linux / WINDOWS:
2826

2927
```bash
3028
mkvirtualenv seleniumbase
@@ -38,12 +36,6 @@ deactivate
3836

3937
You can always jump back into your virtual environment later:
4038

41-
(If using ``virtualenv``):
42-
```bash
43-
source ~/Envs/seleniumbase/bin/activate
44-
```
45-
46-
(If using ``virtualenvwrapper``):
4739
```bash
4840
workon seleniumbase
4941
```

0 commit comments

Comments
 (0)