mac系统安装 python包

mac 虽然自带python,但是并没有自带pip等这样的管理包。

1.brew install pip 安装pip 时,报错:

Error: No available formula with the name "pip" 

pip is part of the python formula:

  brew install python

查询解决方法:

sudo easy_install pip

注:一定要有sudo,否则会permission denied

[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-27819.pth'

2.类似的,安装其他包也需要sudo:

sudo pip install virtualenv

本文来自博客园,作者:BioinformaticsMaster,转载请注明原文链接:https://www.cnblogs.com/koujiaodahan/p/11074390.html

原文地址:https://www.cnblogs.com/koujiaodahan/p/11074390.html