码迷,mamicode.com
首页 > 系统相关 > 详细

mac 下安装pip

时间:2017-09-01 15:03:03      阅读:206      评论:0      收藏:0      [点我收藏+]

标签:orm   code   however   simple   lib   str   homebrew   targe   ret   

pip是常用的Python包管理工具,类似于Java的maven。用python的同学,都离不开pip。 
在新mac中想用home-brew安装pip时,遇到了一些小问题:

bogon:~ wanglei$ brew install pip
Error: No available formula with the name "pip"
Homebrew provides pip via: `brew install python`. However you will then
have two Pythons installed on your Mac, so alternatively you can install
pip via the instructions at:

  https://pip.readthedocs.org/en/stable/installing/#install-pip
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

由此可见,在home-brew中,pip的安装是跟python一起的。

换种方式:

bogon:~ wanglei$ sudo easy_install pip
Password:
Searching for pip
Reading https://pypi.python.org/simple/pip/
...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • 2
  • 3
  • 4
  • 5

稍等片刻,pip就安装完毕。。。

mac 下安装pip

标签:orm   code   however   simple   lib   str   homebrew   targe   ret   

原文地址:http://www.cnblogs.com/xingzc/p/7463182.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!