sbraz/pymediainfo

Permission denied: '/usr/local/docs'

impvd opened this issue · 2 comments

impvd commented

Go error

Installing collected packages: pymediainfo
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/docs'
Consider using the `--user` option or check the permissions.

When using pip3 install pymediainfo

sbraz commented

Hello, this is normal when running pip as non-root. You will see this error for any other package install.
As explained in the documentation, I recommend installing pymediainfo with your package manager if your distribution offers it.

impvd commented

Thanks @sbraz , finally I made it works by pip3 install pymediainfo --user and set the Python path to add the local site-packages

export PATH="${PATH}:$(python3 -c 'import site; print(site.USER_BASE)')/lib/python/site-packages"