Erpnext hitchhiker's guide setup error

erpnext hitchhiker’s guide setup error

I have tried the mentioned setup everything went smooth up to this
$ pip install -e ./bench
after this command i got this error which i could not find a solution for on the forums.

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/usr/local/lib/python2.7/dist-packages/Click-7.0.dist-info’
Consider using the --user option or check the permissions.

I am not very knowledgeable with linux and or erpnext as nothing has really been working out for me, nothing has worked 100% so far for erpnext, its one thing or the other, something always fails to work.
full details of this command is below

user1@user1-G41D3C:~$ pip install -e ./bench
Obtaining file:///home/user1/bench
Collecting Click (from bench==4.1.0)
Using cached https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl
Collecting jinja2 (from bench==4.1.0)
Using cached https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl
Collecting virtualenv (from bench==4.1.0)
Using cached https://files.pythonhosted.org/packages/b6/30/96a02b2287098b23b875bc8c2f58071c35d2efe84f747b64d523721dc2b5/virtualenv-16.0.0-py2.py3-none-any.whl
Collecting requests (from bench==4.1.0)
Using cached https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl
Collecting honcho (from bench==4.1.0)
Using cached https://files.pythonhosted.org/packages/12/c2/95faf9e062e37f50fb685972692395bef019a554c08447282a81e35bf031/honcho-1.0.1-py2.py3-none-any.whl
Collecting python-crontab (from bench==4.1.0)
Collecting semantic_version (from bench==4.1.0)
Collecting GitPython==0.3.2.1 (from bench==4.1.0)
Collecting MarkupSafe>=0.23 (from jinja2->bench==4.1.0)
Collecting certifi>=2017.4.17 (from requests->bench==4.1.0)
Using cached https://files.pythonhosted.org/packages/df/f7/04fee6ac349e915b82171f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests->bench==4.1.0)
Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting urllib3<1.24,>=1.21.1 (from requests->bench==4.1.0)
Using cached https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl
Collecting idna<2.8,>=2.5 (from requests->bench==4.1.0)
Using cached https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
Collecting python-dateutil (from python-crontab->bench==4.1.0)
Using cached https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl
Collecting gitdb>=0.6.0 (from GitPython==0.3.2.1->bench==4.1.0)
Collecting six>=1.5 (from python-dateutil->python-crontab->bench==4.1.0)
Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting smmap>=0.8.5 (from gitdb>=0.6.0->GitPython==0.3.2.1->bench==4.1.0)
Installing collected packages: Click, MarkupSafe, jinja2, virtualenv, certifi, chardet, urllib3, idna, requests, honcho, six, python-dateutil, python-crontab, semantic-version, smmap, gitdb, GitPython, bench
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/usr/local/lib/python2.7/dist-packages/Click-7.0.dist-info’
Consider using the --user option or check the permissions.

for this particular command, you need to add sudo otherwise it gives trouble

sudo pip install -e ./bench

alright thanks, such a simple issue :slight_smile:

it did nto work, now it says about owner ship and -H, no cashe dir now.

I have managed to sort it out now, got a working install now.

ran all of it with sudo -i untill bench and then switch to normal $ and continue to follow the instructions. it worked.

This sequence works for me…

#Login as #########frappe########## user
su frappe && cd ~
git clone GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps bench-repo
##pip install --user -e bench-repo (I cannot get this part to work properly)
sudo pip install -e bench-repo