Mac book Air (late2013) Install python3 environment with anaconda As a beginner, 2.7 environment is not required It's been a while since I tried to install a package with pip I was told to update pip itself.
Normally
# pip install -U pip
If so, will it work? It ends with an error.
In the terminal
PermissonError: [Error 1] Operation not permitted: '/bin/pip'
Is displayed and it does not work.
At the time of El Capitan, I was stuck in the Homebrew area one after another I tried to add Atari when it was related to SIP.
In homebrew, enter the permissions of / usr / local
into recovery mode (⌘ + R at startup) and turn off SIP
#csrutil disable
Reboot
chown -R $ (whoami): admin / usr / local
Permission change
Enter recovery mode again
#csrutil enable
It ended with, but this time it's Python pip, so it's under / bin, so after cutting SIP as well
chown -R $(whoami):admin /bin
I tried to run it as.
# pip install -U pip
I still got the same error, so I tried it with the following command.
#pip install --user -U pip
I was able to update without any errors.
Maybe you didn't need to change the permissions of / bin just by specifying --user in the pip option?
Recommended Posts