Python
Web Resources
Install module simplejson
Modify python's searchpath to find your local modules
Web Resources
url
Description
http://www.python.org
Project home page
http://docs.python.org/tut
Tutorial
http://books.google.com
Google Books -- Oreilly
Install module simplejson
% tar zxvf simplejson-1.9.1.tgz
% cd simplejson-1.9.1
% PYTHONPATH=${HOME}/.python:${HOME}/.python/lib/python2.5/site-packages
% export PYTHONPATH
% mkdir -p ${HOME}/.python/lib/python2.5/site-packages
% python ez_setup.py --install-dir=${HOME}/.python # install latest ez_setup module
% python ez_setup.py --install-dir=${HOME}/.python . # install simplejson
Google Code -- SimpleJSON
Modify python's searchpath to find your local modules
export PYTHONPATH=${HOME}/.python:$PYTHONPATH
within a python script, foobar.py
import sys;
sys.path.append("/cs/${login}/.python");
--
JoeyArmstrong
- 09 Jul 2008
This topic: LabstaffWeb
>
WebHome
>
LabstaffHowto
>
PythonHowto
Topic revision:
09 Jul 2008,
JoeyArmstrong
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback