File tree 2 files changed +27
-1
lines changed
2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 5
5
* .iml
6
6
7
7
* .pyc
8
+ env /
8
9
9
10
config /prod.cfg
10
11
config /client_secrets.json
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Before you start you should
54
54
55
55
* Verify that your currently installed version of Python is ** 2.x** with ` python --version `
56
56
* 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 ) )
58
58
* Create a [ config] ( https://github.com/niqdev/packtpub-crawler/blob/master/config/prod_example.cfg ) file ` cp config/prod_example.cfg config/prod.cfg `
59
59
* Change your Packtpub credentials in the config file
60
60
```
@@ -401,6 +401,31 @@ Install paramiko with `sudo -H pip install paramiko --ignore-installed`
401
401
402
402
Install missing dependencies as described [ here] ( https://cryptography.io/en/latest/installation/#building-cryptography-on-windows )
403
403
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
+ ```
404
429
405
430
### Development (only for spidering)
406
431
Run a simple static server with
You can’t perform that action at this time.
0 commit comments