views:

40

answers:

2

I am trying to install Jinja2 on a web server. I tried running the command "easy_install Jinja2" as they suggested and got an error:

[Errno 13] Permission denied: '/usr/lib/python2.5/site-packages/test-easy-install-15897.write-test'

I thought that since this was a permission problem, I tried the same thing with "sudo". I was asked for a password and told I don't have permission.

I tried installing Jinja2 with "python setup.py" and ran into similar problems.

I contacted my web hosting company (DreamHost, in case that matters), and they said I had to pay for their VPS service to get root access. I would prefer to install this without paying extra. They said I may have some luck installing it to my home directory, but they wouldn't guarantee anything. Does anyone here know how to do this? I have never used Jinja2, easy_install, or setuptools in my life until just now, so I don't know much about any of these things.

+3  A: 

You can probably use virtualenv for solve this.

lazy1
Do you have any experience with this? It looks kind of tricky but I may be willing to try it. I would like to know if it is tricky to install, if it will work with my existing Python CGI scripts without too much trouble, if it will slow down my site a lot, and if there is anything else I should know before trying it.
mikez302
+1  A: 

easy_install --user Jinja2

Evan
I tried typing that into the command line and I got this error: "error: option --user not recognized".
mikez302