Webfaction setup Virtualenv

1k views Asked by At

I've got to setup a new Django website on a webfaction account, getting issues when I try to run pip this is the error I get when I run pip install south

OSError: [Errno 13] Permission denied: '/tmp/pip-build/virtualenv'
1

There are 1 answers

4
Kevin Cherepski On

Webfaction provides instructions on how to install pip and pip packages for use within your local home directory... http://docs.webfaction.com/software/python.html#installing-packages-with-pip

If you plan on hosting multiple web applications from the same webfaction server, it's probably wise to setup virtualenvs for each application. To do this, I would try the following...

  1. pip install --user virtualenv # install virtualenv via pip
  2. echo 'export PATH="$HOME/bin:$PATH"' >> $HOME/.bashrc # add local bin directory to PATH
  3. source $HOME/.bashrc # reload .bashrc to kick in PATH changes
  4. virtualenv yourvirtualenv --no-site-packages

Hopefully that works. I don't have Webfaction to test but I think that should suffice.