代码

首先直接上代码,以清华大学的镜像为例

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 包名

直接在pycharm终端输入这段代码即可

 其他镜像网站

  • 清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/
  • 阿里云:http://mirrors.aliyun.com/pypi/simple/
  • 中国科学技术大学:http://pypi.mirrors.ustc.edu.cn/simple/
  • 将刚刚的代码中的网址替换一下即可 

    作者:烟花节

    物联沃分享整理
    物联沃-IOTWORD物联网 » Python包镜像方法详解

    发表回复