如何在macOS或OS X上安装pip?
问题描述:
昨天我花了大部分时间寻找安装pip
(Python的程序包管理器)的明确答案.我找不到一个好的解决方案.
I spent most of the day yesterday searching for a clear answer for installing pip
(package manager for Python). I can't find a good solution.
如何安装?
答
更新(2019年1月):
easy_install
已被已弃用.请使用 get-pip.py
代替:
easy_install
has been deprecated. Please use get-pip.py
instead:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
旧答案:
easy_install pip
如果您需要管理员权限才能运行此程序,请尝试:
If you need admin privileges to run this, try:
sudo easy_install pip