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-
python-on-windows/ ) :
cd c:\virtualenvs
C:\Python27\Scripts\virtualenv.exe
-no-site-packages chp09-env
chp09-env\Scripts\activate
3. Onceactivated,youcaninstallthePythonpackagesthatyouwilluseforthis
recipeaswellasthenext,usingthe pip tool( http://www.pip-installer.org/en/
latest/ ) .
• 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
http://thematicmapping.org/downloads/TM_WORLD_BORDERS-0.3.zip . A
copyofthisshapefileisincludedinthecodebundleofthisbook.Extractthe
shapefile to the working/chp09 directory.
Search WWH ::




Custom Search