For Python packages that are available on pypi.python.org, I found the following commands helpful: cd <sagedir> ./sage --python -m easy_install <package_name>
Hope that's of some help! Pete On Wednesday, 23 April 2014 01:06:51 UTC+1, Akshat Mahajan wrote: > > Hi! > > The general problem: how does one go about installing modules (that are > not shipped with Sage) for Python 2.x for Sage in Ubuntu? > > Why I'm asking this: I have to work with files in the hdf4 format. Now, > there's a module called PyHDF that allows me to read hdf4 files using > Python. However, I only have the Python that comes shipped with Sage, in a > Ubuntu environment. I'd like to be able to install PyHDF to the > Sage-shipped Python. How do I do that? > > Thank you so much! > > Yours, > Akshat > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.