LoginSignup
107
44

More than 1 year has passed since last update.

【Python】macOSでpipを使えるようにする

Last updated at Posted at 2020-08-06

ラズパイだとapt-getでpipがインストールできますが、macOSでpipをインストールしたく、そこで詰まってしまったのでその備忘録です。
Homebrewで一発とか思ってたのですが、brew install pipではインストールできません。1

公式ページのインストール方法に従う

公式のやり方に従って、以下のcurlコマンドで get-pipというPythonファイルをダウンロードします。

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

ダウンロードしたget-pip.pyを実行するとpipがインストールされます。

$ python3 get-pip.py

インストール完了

whichコマンドを叩いてパスが表示されるので、インストール自体は完了です。

$ which pip
/usr/local/bin/pip

環境

  • macOS 10.15.5 Catalina
  • pip 20.2.1
  • Python 3.8.5

参考サイト


  1. ※筆者はHomeBrewが大好きです。 

107
44
1

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
107
44