Take the following steps to setup development with Virtualenv:
-
Start a terminal (a shell). You'll perform all subsequent steps in this shell.
-
Clone the repo:
$ git clone https://github.com/goodow/realtime-python.git $ cd realtime-python/
-
Install pip and Virtualenv by issuing the following commands:
$ sudo easy_install pip $ pip install --upgrade virtualenv
-
Create a Virtualenv environment:
$ virtualenv --system-site-packages -p python3 . # require Python 3.n
-
Activate the Virtualenv environment:
$ source ./bin/activate
The preceding
source
command should change your prompt to the following:(realtime-python)$
-
Ensure pip ≥8.1 is installed:
(realtime-python)$ easy_install -U pip
-
Install all the required packages into the active Virtualenv environment:
(realtime-python)$ pip3 install --upgrade -r requirements.txt