@@ -54,7 +54,7 @@ Before you start you should
5454
5555* Verify that your currently installed version of Python is** 2.x** with` python --version `
5656* Clone the repository` git clone https://github.com/niqdev/packtpub-crawler.git `
57- * Install all the dependencies(you might need * sudo * privilege) ` pip install -r requirements.txt `
57+ * Install all the dependencies` pip install -r requirements.txt ` (see also [ virtualenv ] ( https://github.com/niqdev/packtpub-crawler#virtualenv ) )
5858* Create a[ config] ( https://github.com/niqdev/packtpub-crawler/blob/master/config/prod_example.cfg ) file` cp config/prod_example.cfg config/prod.cfg `
5959* Change your Packtpub credentials in the config file
6060```
@@ -401,6 +401,31 @@ Install paramiko with `sudo -H pip install paramiko --ignore-installed`
401401
402402Install missing dependencies as described[ here] ( https://cryptography.io/en/latest/installation/#building-cryptography-on-windows )
403403
404+ ###virtualenv
405+
406+ ```
407+ # install pip + setuptools
408+ curl https://bootstrap.pypa.io/get-pip.py | python -
409+
410+ # upgrade pip
411+ pip install -U pip
412+
413+ # install virtualenv globally
414+ sudo pip install virtualenv
415+
416+ # create virtualenv
417+ virtualenv env
418+
419+ # activate virtualenv
420+ source env/bin/activate
421+
422+ # verify virtualenv
423+ which python
424+ python --version
425+
426+ # deactivate virtualenv
427+ deactivate
428+ ```
404429
405430###Development (only for spidering)
406431Run a simple static server with