0

I have installed Python 2.7 on my Mac, but I am unable to install packages using pip2.7 install. Any time I try to install a package in the terminal, for example,

pip2.7 install pandas 

I get the OSError:

OSError: [Errno 1] Operation not permitted: 

I also have Python 3.6 installed and I am able to install packages for that version, but I have some work that needs to be done in 2.7 and I want to be able to run my script and ensure that it works in 2.7.

Megan
  • 319
  • 1
  • 5
  • 12

1 Answers1

0

you can't change thing in /system on mac and the default python‘s library of mac is here. So you can't install anything.

The best way is install a new python of 2.7

The another way is close the rootless of mac.

Yang MingHui
  • 380
  • 4
  • 14