카테고리 없음

errno13: Permission denied

carro1t 2019. 6. 12. 01:27

 

1. 파일을 오픈할 수 있는 권한이 없을 경우, 대다수가 이 문제인 듯

2. 파일이 아닌 폴더를 지정했을 때 (?)

3. 파일이 없을 때

 


github

 

I try to install google assistant on raspberry PI 3 by this code

python -m pip install google-assistant-sdk[samples]

and then it is show

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/lib/python2.7/dist-packages/pyasn1/error.py'

Consider using the --useroption or check the permissions.

thank you.

 

You are trying to install the package to a system folder which you don't have permissions to write to.

You have three options(use only one of them):

1-setup a virtual env to install the package (recommended):

python3 -m venv env source ./env/bin/activate python -m pip install google-assistant-sdk[samples] 

2-Install the package to the user folder:

python -m pip install --user google-assistant-sdk[samples]

 

 

3-use sudo to install to the system folder (not recommended)

sudo python -m pip install google-assistant-sdk[samples]

 


 

항상 명심합시다 sudo는 웬만하면 건들지 말자..