MacOSにpipをインストールする世界一簡単な方法(v2.7)

はてなブックマーク - MacOSにpipをインストールする世界一簡単な方法(v2.7)
LINEで送る
Pocket

こんにちは、株式会社虹賢舎の川島です!

今日は4月1日、April Fool’s dayですが、良いネタの「うそ」が思いつかなくて、とりあえずタイトルに「世界一」をつけてみました!笑。

Pythonを勉強する時に、pipがよく登場しますよね。

「そういえば、pipはどうやって導入するの?」

と思う時は、このコマンドです!

sudo easy_install pip

以上です!

世界一簡単でしょう?笑。

easy_installはPythonのデフォルトのパッケージマネジメントツールで、Pythonと一緒に配布されています。

MacOSのターミナルでこのコマンドを実行すれば、pipをインストールしてくれます。

ただ、これは、MacOSのPython(v2.7)を利用する場合です。

もし、Python v3が必要な場合は、

brew install python

お試しください!

はてなブックマーク - MacOSにpipをインストールする世界一簡単な方法(v2.7)
LINEで送る
Pocket

Add a Comment

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close