如果用的是macOS自带的python2.7,直接
sudo easy_install pip
这样会装到2.7的路径下。
如果像我这样安装另一个Python3,就按下面这样安装。
curl https://bootstrap.pypa.io/get-pip.py | python3
安装完成后,查看pip的版本和路径。
pip --version
如果用的是macOS自带的python2.7,直接
sudo easy_install pip
这样会装到2.7的路径下。
如果像我这样安装另一个Python3,就按下面这样安装。
curl https://bootstrap.pypa.io/get-pip.py | python3
安装完成后,查看pip的版本和路径。
pip --version
本文标题:macOS安装pip
本文链接:https://www.haomeiwen.com/subject/negjyttx.html
网友评论