python清华镜像

首先,如果只是临时下载一个包
那么可以使用

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 要下的包名
  • 1

如果是永久修改镜像源

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

如果网络不好则使用这个

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U
``

原文地址:https://www.cnblogs.com/fusiyilia/p/12268919.html

时间: 2024-08-30 18:12:06

python清华镜像的相关文章

Python配置清华镜像源

1.前言 使用pip 安装服务器在国外的python 库时,下载需要很长时间,在配置文件中设置国内镜像可以提高速度,清华镜像源就是其中之一. 2.pypi 镜像使用帮助 网址:(https://mirrors.tuna.tsinghua.edu.cn/help/pypi/) 3.临时配置 若只是临时下载一个python库的话,则可使用以下命令进行配置: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package 说明:

国内外开源镜像|清华镜像

开源镜像(mirror)为广大开源爱好者,提供更为便捷的下载与接触最前沿的技术! 清华Mirror:   https://mirror.tuna.tsinghua.edu.cn/ 阿里云Mirror   http://mirrors.aliyun.com/ 清华镜像列表: apache [已被认为官方源]  apache software foundation的软件 archlinux  [已被认为官方源]  滚动更新的 Linux 发行版,极简主义哲学. archlinuxarm[已被认为官方

Miniconda3清华镜像源不能用了

1.添加清华镜像源https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/conda config --set sh

树莓派3B/3B+ 清华镜像系统和安装中文输入法Fcitx及Google拼音输入法

你还在为树莓派无法安装中文输入法而到处找教程吗? 你还在为树莓派每次下载都要远隔重洋获取资源,龟速下载而烦恼吗? 为了解决这个问题,在这篇树莓派教程中,我将手把手叫你怎样安装 清华镜像系统和中文输入法Fcitx及Google拼音输入法. 步骤一:换源:将下载源从树莓派默认国外源切换到国内清华大学开源软件镜像站 在树莓派的命令行界面输入 1 sudo nano /etc/apt/sources.list 使用键盘方向键控制,在第一行开头加一个#,把下面的内容拷贝到最后一行之后,如图中的效果: 清华

使用清华镜像在python中pip 安装

Anaconda的安装步骤不在本文的讨论中,我们主要是学习一下如何配置conda的镜像,以及一些问题的解决过程 配置镜像 在conda安装好之后,默认的镜像是官方的,由于官网的镜像在境外,我们使用国内的镜像能够加快访问的速度.这里我选择了清华的的镜像.镜像的地址如下:点我进入tuna 在命令行中运行 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/   conda config

ubuntu下anaconda从清华镜像的下载安装及配置

直接贴出链接http://blog.csdn.net/xiaerwoailuo/article/details/70054429 http://blog.csdn.net/zhdgk19871218/article/details/46502637 清华Anaconda 镜像使用帮助https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/ anaconda安装包下载https://mirrors.tuna.tsinghua.edu.cn/anacon

Python更换镜像源

目录 Windows Mac 这篇文章将解除你使用python的pip install xxx受到的网速限制,如果只是下载较小的第三方库,可以尝试pip --default-timeout=100 install -U xxx. Windows 找到python安装目录下的:\Lib\site-packages\pip\models\index.py文件,将PYPI的值改为你所需要的镜像源即可,例如改为豆瓣镜像源: #PyPI = Index('https://pypi.python.org/'

机器学习包pip清华镜像源安装方法

安装各种机器学习包的时候,经常出现无法下载安装包的问题,而导致安装失败.清华的镜像速度很快,下面对本方法进行讲解. 命令法 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple packages 注:把packages替换为安装模块. 配置法 pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple 以pytorch为例 pip install tor

Anaconda3切换清华镜像及添加Python2.7

开始-所有程序-Anaconda3-Anaconda Prompt conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --set show_channel_urls yes conda config --remove channels defaults #这里删除了默认源,不然总是从官网下载然后超时. conda create -n py27 pyth