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

相关文章:

  • 2022-01-12
  • 2021-08-18
  • 2021-07-27
  • 2021-09-28
  • 2021-11-02
  • 2021-08-19
  • 2021-07-17
  • 2021-07-02
猜你喜欢
  • 2021-07-28
  • 2022-01-30
  • 2022-02-09
  • 2021-12-16
  • 2021-11-18
  • 2021-11-16
  • 2021-04-02
相关资源
相似解决方案