From 0c2ccc8c6ed3ebf09991fcc35791ff12830fae03 Mon Sep 17 00:00:00 2001 From: Hugo Herter Date: Thu, 28 Jul 2016 10:24:53 +0200 Subject: [PATCH 1/2] Change to activate virtualenv in getting_started While it is not the topic of this doc to explain how to use a virtualenv, I fear that beginners will have issues when trying the examples as the virtual environment will not be loaded and they will think to use `./venv/bin/python` for launching every example. --- getting_started.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/getting_started.rst b/getting_started.rst index 8b55937..6f081d4 100644 --- a/getting_started.rst +++ b/getting_started.rst @@ -63,7 +63,8 @@ If you don't use conda (see above), create a virtual environment:: Depending on your platform, the Python 3 interpreter could be invoked by ``python`` instead. This is the case for conda on Windows for example. -Install ``aiohttp`` in the virtual environment:: +Activate the virtual environment and install ``aiohttp`` inside: - ./venv/bin/python -m pip install -U aiohttp + source ./venv/bin/activate + pip install -U aiohttp From 25d82dfab2643ec90bb149993f02520ddf5ae9f2 Mon Sep 17 00:00:00 2001 From: Hugo Herter Date: Sat, 30 Jul 2016 17:10:21 +0200 Subject: [PATCH 2/2] Useless './' when sourcing venv --- getting_started.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting_started.rst b/getting_started.rst index 6f081d4..c15e0e6 100644 --- a/getting_started.rst +++ b/getting_started.rst @@ -65,6 +65,6 @@ If you don't use conda (see above), create a virtual environment:: Activate the virtual environment and install ``aiohttp`` inside: - source ./venv/bin/activate + source venv/bin/activate pip install -U aiohttp