0

Recently I messed up my steady environment by installing multiple versions of python.

What I'm trying to do: install a particular package using pip

pip cannot install any package without the --user tag

Could not install packages due to an EnvironmentError: [Errno 13 Permission denied: '/Library/Python/2.7/site-packages/PIL

Here's More information:

which pip
/usr/local/bin/pip

which python
/usr/bin/python

What should I do?

complextea
  • 393
  • 1
  • 5
  • 16
  • Just use virtualenvs, much easier and safer. – iz_ Nov 28 '18 at 23:29
  • Possible duplicate of [pip install -r: OSError: \[Errno 13\] Permission denied](https://stackoverflow.com/questions/31512422/pip-install-r-oserror-errno-13-permission-denied) – phd Nov 29 '18 at 01:46

1 Answers1

0

Use sudo or su to install packages system-wide.

eri
  • 3,133
  • 1
  • 23
  • 35