Python packages

software development

#1

Is it possible to install arbitrary python packages to our dreamhost sites? Specifically, I’m interested in installing matplotlib for displaying plots on my site.

If this is possible, could someone reply with some instructions (or a link to such instructions) for how to do such an install?

Thank you!


#2

http://wiki.dreamhost.com/Python#Virtualenv

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#3

"Just make sure that your path gives preference to ~/local/bin to /usr/bin so that your “local” copy of Python runs, and that your scripts refer to that location. Now that you have configured virtualenv, you can run easy_install to install Python modules. "

Can someone provide more details on how to do this? I tried setting the PYTHONPATH environment variable to ~/local/bin but when I run easy_install I still get:

"error: can’t create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 13] Permission denied: ‘/usr/lib/python2.4/site-packages/test-easy-install-18097.write-te
st’

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/usr/lib/python2.4/site-packages/"

Thanks


#4

You could try setting the paths in .bash_profile, logout, then log back in again.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost