TWiki
>
LabstaffWeb Web
>
LabstaffHowto
>
PythonHowto
(2008-07-09,
JoeyArmstrong
)
E
dit
A
ttach
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
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
R
aw View
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2008-07-09 - 17:57:37 -
JoeyArmstrong
LabstaffWeb
Log In
LabstaffWeb Web
Create New Topic
Index
Search
Changes
Notifications
Statistics
Preferences
Webs
BioInfomaticsWeb
Bugs
CourseWeb
CSCI1200
CSCI4210
CSCI4380
CSCI4430
CourseTa
HassResources
LabstaffWeb
LandgrafWeb
Main
NetworkingAcademy
RoboticsWeb
ReadingGroup
Summer2011
Sandbox
TWiki
Copyright © 1824-2009
Rensselaer Polytechnic Institute (RPI)
110 Eighth Street, Troy, NY USA 12180 (518) 276-8326