Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

try this at the terminal

$sage -sh
$easy-install 'python-module'

try this at the terminal

$sage -sh
$easy-install $easy_install 'python-module'

try this at the terminal

$sage -sh
$easy_install 'python-module'

Edit: The command easy_install will download the module from internet and install it.

For eg. If you type easy_install asciitables you get the following output. Notice it goes to the websites http://pypi.python.org/simple/asciitable/ and http://cxc.harvard.edu/contrib/asciitable finds the latest version and installs it.

(sage subshell) galileo:~ shashank$ easy_install asciitable
Searching for asciitable
Reading http://pypi.python.org/simple/asciitable/
Reading http://cxc.harvard.edu/contrib/asciitable
Best match: asciitable 0.8.0
Downloading http://pypi.python.org/packages/source/a/asciitable/asciitable-0.8.0.zip#md5=27e42e69f8114e54724cd81ef1d0e88d
Processing asciitable-0.8.0.zip
Running asciitable-0.8.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-vcITTN/asciitable-0.8.0/egg-dist-tmp-S2CmQN
zip_safe flag not set; analyzing archive contents...
asciitable.version: module references __file__
Adding asciitable 0.8.0 to easy-install.pth file

Installed /home/shashank/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.6/site-packages/asciitable-0.8.0-py2.6.egg
Processing dependencies for asciitable
Finished processing dependencies for asciitable
SAGE_ROOT=/home/shashank/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux