MartinSahlen/cloud-functions-python

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied

Closed this issue · 3 comments

ACPK commented

OS:

  Mac

Python:

  Python3

Command:

  pip3 install pycloudfn

Error:

  Installing collected packages: pefile, altgraph, macholib, pyinstaller, six, python-dateutil, werkzeug, django, Jinja2, futures, pyspin, pyasn1-modules, cachetools, google-auth, pycloudfn
    Found existing installation: six 1.11.0
      Uninstalling six-1.11.0:
        Successfully uninstalled six-1.11.0
    Rolling back uninstall of six
  Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/site-packages/six.py'
  Consider using the `--user` option or check the permissions

try pip3 install pycloudfn --user

@wanghulin How the --user flag is making difference here?

@wanghulin @arshpreetsingh I would strongly consider using https://cloud.google.com/functions/docs/concepts/python-runtime, it should work exactly the same way, this library is not well maintained.