Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

macOS Sierra で `pip install` したときに `Permisson denied` になった

Last updated at Posted at 2017-11-07

Homebrew で python を入れたあとに発生。パッケージのインストール時に/Library配下にファイルを作りに行って落ちる。
原因はpipが元々入っていた python の環境の物が使われていたため。多分easy_installpipを入れたのがよくなかった。

~ python -m pip --version
pip 9.0.1 from /usr/local/lib/python2.7/site-packages (python 2.7)
~ pip --version
pip 9.0.1 from /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg (python 2.7)

という感じになっている。

Homebrew で入れた python にpipは入っているが、pip2という名前になっているのでpipで呼べるようにする。

cd /usr/local/bin
ln -s pip2 pip
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?