I have installed Python 3.7.5 on MacOS 10.14.6 from brew (brew install python).
brew info python shows:
You can install Python packages with
They will install into the site-package directory
But when I trying install boto3 pip package (actually name of package no matter, it’s issue with any) see this error:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/lib/python3.7' Consider using the `--user` option or check the permissions.
I tried figure out where pip get ‘/lib/python3.7’ lib, because python itself shows site-packages is another directory:
python3 -c “import site; print(site.getsitepackages())”
And also this directory not listed here:
python3 -m site
sys.path = [
Please help determine a way how pip determine where packages should be installed.