1、修改默认源

查看当前使用源
创建pip目录:

MacBook-Pro-2:~ root# cd /Users/huangshihui/Library/Application\ Support/
MacBook-Pro-2:~ root# mkdir pip
MacBook-Pro-2:~ root# vim pip.conf

加入以下内容,修改为清华源

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn

查看当前的pip3情况

huangshihui@huangshihuideMacBook-Pro-2 pip % pip3 show pip 
Name: pip
Version: 19.0.3
Summary: The PyPA recommended tool for installing Python packages.
Home-page: https://pip.pypa.io/
Author: The pip developers
Author-email: pypa-dev@groups.google.com
License: MIT
Location: /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/site-packages
Requires: 
Required-by: 

2、查看pip,python3的安装路径

huangshihui@huangshihuideMacBook-Pro-2 pip % whereis pip3
/usr/bin/pip3
huangshihui@huangshihuideMacBook-Pro-2 pip % whereis python3
/usr/bin/python3

相关文章:

  • 2021-12-02
  • 2021-11-12
  • 2021-07-10
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案