Install ERPNext on virtualenv without having root privillage

Is it possible to install ERPNext on virtualenv without having root privillage.

I am trying to do that, but fails with the following error.

subprocess.CalledProcessError: Command ‘./env/bin/pip -q install https://github.com/frappe/MySQLdb1/archive/MySQLdb-1.2.5-patched.tar.gz’ returned non-zero exit status 1

When follow the messgae
(venv)sooraj@localhost:~/frappe-bench$ ./env/bin/pip install https://github.com/frappe/MySQLdb1/archive/MySQLdb-1.2.5-patched.tar.gz

I am getting this error

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-nmBefS-build

Yes, that is how it installs. You don’t need to make a virtualenv as bench makes it for you.

bench init another-bench

will install another bench and will not require root privileges.

When I tried to install without creating a virtual environment it returned an error as follows:

OSError: [Errno 13] Permission denied: ‘/usr/local/lib/python2.7/dist-packages/click’


Through virtual environment, retuned the same error as in the original post.
$ virtualenv venv
$ source venv/bin/activate
$ pip install requests
$ pip install -U setuptools
$ pip install distribute
$ git clone GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps bench-repo
$ pip install -e bench-repo
$ cd ~
$ bench init another-bench