Database Reference
In-Depth Information
$ source chp09-env/bin/
activate
• Type the following commands in Windows (for steps to install vir-
tualenv on Windows, refer to
https://zignar.net/2012/06/17/install-
cd c:\virtualenvs
C:\Python27\Scripts\virtualenv.exe
-no-site-packages chp09-env
chp09-env\Scripts\activate
3. Onceactivated,youcaninstallthePythonpackagesthatyouwilluseforthis
• In Linux, the command would be as follows:
(chp09-env)$ pip install
django==1.5.1
(chp09-env)$ pip install
psycopg2
(chp09-env)$ pip install pil
• In Windows, the command would be as follows:
(chp09-env) C:\virtualenvs>
pip install django==1.5.1
(chp09-env) C:\virtualenvs>
pip install psycopg2
(chp09-env) C:\virtualenvs>
easy_install pil
4. If you haven't done it so far, download the world countries shapefile from
copyofthisshapefileisincludedinthecodebundleofthisbook.Extractthe
shapefile to the
working/chp09
directory.