-i https://pypi.tuna.tsinghua.edu.cn/simple/

设为默认

pip install pip -U pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

升级 pip 到最新的版本 (>=10.0.0) 后进行配置:


以上清华镜像容易抽风,请使用,

中科大镜像:

-i https://mirrors.ustc.edu.cn/pypi/web/simple

豆瓣源

-i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

linux永久加入:

sudo gedit /etc/pip.conf

[global]index-url = https://pypi.doubanio.com/simpletrusted-host = pypi.doubanio.com

真正能用的(ubuntu18实测):

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/

Win10亲测

修改.condarc

channels:- defaults
show_channel_urls: true
channel_alias: https://mirrors.tuna.tsinghua.edu.cn/anaconda
default_channels:- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudmsys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudbioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudmenpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudpytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudsimpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

conda查看源:

conda config --show-sources

conda添加源(中科大)

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
conda config --set show_channel_urls yes

清华源加速 添加在pip install xxx后面即可相关推荐

  1. pip install xxx模块如何自动桥接国内镜像源

    大家好,我是戒酒的李白,一位又爱喝酒又爱写诗的大学生. 目录 一.分析问题 二.提出问题 三.解决问题 四.结束语 一.分析问题 分析问题:大家对pip install 都不陌生,python语言具有 ...

  2. pycharm使用pip install xxx 解决超时问题

    第一天:pycharm解决Flask-SQLAlchemy按错出错问题 刚开始用博客有点不适应 首先,我最开始实在settings中 1-4步骤非常简单不做过多说明,步骤4我在这里没有选择,版本问题我 ...

  3. python-如何解决python执行pip install 命令的时候出现 File“<stdin>“,line 1 pip install XXX的问题

    python-如何解决python执行pip install 命令的时候出现 File"",line 1 pip install XXX的问题 参考文章: (1)python-如何 ...

  4. python pip install syntaxerror_解决pip install xxx报错SyntaxError: invalid syntax的问题

    python--pip install xxx报错SyntaxError: invalid syntax 在安装好python后,进入python运行环境后,因为我要用pip安装开发Web App需要 ...

  5. suse12中pip install xxx报错gcc: error: unrecognized command line option ‘-fstack-clash-protection’

    我们在Linux中安装某些python的第三方包时,有时候需要gcc来进行协助编译安装(例如psutil.pycrypto等) 1.很不幸,最近在suse12中用pip install psutil时 ...

  6. cmd命令行使用pip install XXX库时,出现安装失败。

    ** 当我们在计算机cmd命令行使用pip install XXX库时,出现安装失败. ** 问题 当我们在windows系统下cmd命令行使用pip install XXX库时,出现安装失败. 出现 ...

  7. Python 安装模块 使用pip install xxx很慢的解决方法

    使用清华镜像 https://pypi.tuna.tsinghua.edu.cn/simple 比如:pip install -i https://pypi.tuna.tsinghua.edu.cn/ ...

  8. qpython3怎样安notebook_Windows下基于Python3安装Ipython Notebook(即Jupyter)。python –m pip install XXX...

    1.安装Python3.x,注意修改环境变量path(追加上python安装目录,如:D:\Program Files\Python\Python36-32) 2.查看当前安装的第三方包:python ...

  9. conda install xxx 与 pip install xxx 区别

    conda install 可在 anaconda 的 base 和任何新建的虚拟环境下使用,pip 使用的前提是安装了 pip 包. 如在 py36 环境下使用 conda install 和 pi ...

  10. python-如何解决执行pip install 命令的时候出现 File stdin,line 1 pip install XXX的问题

    记录一下今天安装jupyter的时候出的错: 出错的步骤: 1.在cmd命令行输入python: 2.在命令行输入 pip3 install jupyter: 在经过百度后,整理出 解决办法: 因为p ...

最新文章

  1. pyqt setStyleSheet用法
  2. 数据类型长度、原反补码及移位
  3. Android单元測试之JUnit
  4. Python 微信机器人-用itchat库下载微信接收到的语音、图片等资源实例演示
  5. Micropython教程之TPYBoard制作蓝牙+红外循迹小车
  6. 稀疏矩阵十字链表类java_稀疏矩阵的十字链表存储表示
  7. 机器学习java_Java机器学习,第1部分
  8. python搭建web服务器_Python搭建简单的web服务器
  9. 重写equals方法---java
  10. 某角数卡发卡网程序V1.7.1版本开源源码
  11. 敏捷开发框架_RingCentral Tech丨LeSS- 大规模敏捷开发框架实践心路
  12. 小程序开发工具命令行启动配置
  13. matlab基于凹点匹配的分割算法,一种基于凹点匹配的重叠图像分割算法
  14. 怎样提高报表呈现的性能
  15. Unity小地图制作与美化
  16. 检索器与阅读器:开放域问答的综述 Retrieving and Reading: A Comprehensive Survey on Open-domain Question Answering
  17. C# 读取西门子S7系列PLC教程及源码
  18. python项目--O2O优惠券线下使用情况数据分析
  19. oj趣味题:柱状图排序
  20. LabwindowsCVI 串口编程及事例

热门文章

  1. 在linux下运行.o文件,Linux环境下在可执行程序中嵌入资源文件
  2. DOM的重点核心总结
  3. Three.js中的矩阵
  4. Ubuntu菜鸟入门(五)—— 一些编程相关工具
  5. [笔记] 线段树的兄弟姐妹们
  6. 由sqlite在手机上的存储位置,引发的onCreate在哪里执行的小结
  7. plc算法相关论文参考
  8. linux 压缩与解压缩命令汇总
  9. 关于spfile的一个难题
  10. 2022 基于SpringBoot/SSM的数据库查询平台