Loading

Python安装包时出现源服务器信任问题

pip install --extra-index-url http://mirror.in.zhihu.com/simple xxx(tzone.client==0.3.3) --trusted-host mirror.in.zhihu.com

  1. pip install 表示通过pip 来安装某种包

  2. xxx 表示你要安装的包名,比如pipenv,jupyter等等

  3. -i http://pypi.douban.com/simple 表示将镜像地址切换为国内,这里切换到了豆瓣

4.--trusted-host pypi.douban.com 表示将指定网站设置为信任服务器

posted @ 2021-02-22 11:16  封灵寒武  阅读(369)  评论(0)    收藏  举报