前往小程序,Get更优阅读体验!
立即前往
发布
社区首页 >专栏 >Mac安装pip的方式

Mac安装pip的方式

作者头像
青山师
发布2023-05-05 19:04:15
发布2023-05-05 19:04:15
30200
代码可运行
举报
运行总次数:0
代码可运行

先下载https://bootstrap.pypa.io/get-pip.py:

代码语言:javascript
代码运行次数:0
复制
 wget https://bootstrap.pypa.io/get-pip.py

然后直接sudo python get-pip.py,pip就安装好了

代码语言:javascript
代码运行次数:0
复制
sudo python get-pip.py
Password:
The directory '/Users/byronyy/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/byronyy/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pip
  Downloading https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 398kB/s 
Collecting wheel
  Downloading https://files.pythonhosted.org/packages/5a/9b/6aebe9e2636d35d1a93772fa644c828303e1d5d124e8a88f156f42ac4b87/wheel-0.32.2-py2.py3-none-any.whl
Installing collected packages: pip, wheel
Successfully installed pip-18.1 wheel-0.32.2

使用安装好的pip安装包:

代码语言:javascript
代码运行次数:0
复制
pip install ....
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2018-11-14,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档