centos7下python的国内源

操作系统:centos7

python:2.7.x

国内源:

清华:https://pypi.tuna.tsinghua.edu.cn/simple

阿里云:http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

华中理工大学:http://pypi.hustunique.com/

山东理工大学:http://pypi.sdutlinux.org/

豆瓣:http://pypi.douban.com/simple/

临时使用:

可以在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn/simple

例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyspider,这样就会从清华这边的镜像去安装pyspider库。

永久修改,一劳永逸:

Linux下,修改 ~/.pip/pip.conf (没有就创建一个文件夹及文件。文件夹要加“.”,表示是隐藏文件夹)

内容如下:

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

windows下,直接在user目录中创建一个pip目录,如:C:\Users\xx\pip,新建文件pip.ini。内容同上。

时间: 2024-08-01 00:17:46

centos7下python的国内源的相关文章

EnvironmentError: mysql_config not found问题解决(centos7下python安装mysql-python)

centos7下python安装mysql-python模块,执行命令: pip install mysql-python 出现报错:EnvironmentError: mysql_config not found 网上查了一下需安装mysql-devel yum -y install mysql-devel 安装成功后,执行命令python setup.py install 又出现报错:error: command 'gcc' failed with exit status 1 明明装了gcc

python 使用国内源安装软件

python linux 等 使用国内源安装软件 速度更快 你值得拥有 ! 豆瓣源: https://pypi.douban.com/simple/ 阿里源: http://mirrors.aliyun.com/pypi/simple/ 清华源:https://pypi.tuna.tsinghua.edu.cn/simple/ 华中理工大学源 :http://pypi.hustunique.com/simple/ 山东理工大学 源 :http://pypi.sdutlinux.org/simpl

Python更换国内源实现快速PIP安装

WINDOWS 安装pip 1.首先下载安装Python,并将python的安装目录添加进系统环境变量 2.复制这个文件保存为.py并执行 https://bootstrap.pypa.io/get-pip.py 3.执行完后找到本机的python目录,打开scripts文件夹,将这个文件夹下的路径添加进环境变量 至此,重新打开cmd界面输入pip即可发现安装成功 但是pip初始的源往往会比较慢,或者根本连不上,所以需要替换源 更新源: 1.找到本机User目录下的应用程序文件存放目录appda

centos7下Python和python3共存

一.python3.7.3安装1.下载对应的版本https://www.python.org/downloads/source/2.安装依赖的包 yum install -y gcc zlib* make libffi-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel3.解压下载的文件 tar -zxvf Python-3.7.3.tgzcd Python-3.7.34.编译安装

Python pip 国内源

阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/ 原文地址:https://www.cnbl

Python pip国内源

阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/ 原文地址:https://www.cnbl

python 国内源

pipy国内镜像目前有: http://pypi.douban.com/  豆瓣 http://pypi.hustunique.com/  华中理工大学 http://pypi.sdutlinux.org/  山东理工大学 http://pypi.mirrors.ustc.edu.cn/  中国科学技术大学 手动指定源,可以在pip后面跟-i 来指定源,比如用豆瓣的源来安装web.py框架: pip install web.py -i http://pypi.douban.com/simple

[转帖]centos7 使用kubeadm 快速部署 kubernetes 国内源

centos7 使用kubeadm 快速部署 kubernetes 国内源 https://www.cnblogs.com/qingfeng2010/p/10540832.html 前言 搭建kubernetes时看文档以及资料走了很多弯路,so 整理了最后成功安装的过程已做记录.网上的搭建文章总是少一些步骤,想本人这样的小白总是部署不成功(^_^). 准备两台或两台以上的虚拟机,系统centos7, 本文只准备了两个虚拟机(电脑风扇已转的飞起). 多注意红色加粗的 代码以及文字 ------q

(转)LINUX CENTOS7下安装PYTHON

LINUX CENTOS7下安装PYTHON 原文:http://www.cnblogs.com/lclq/p/5620196.html Posted on 2016-06-27 14:58 南宫羽香 阅读(8506) 评论(5) 编辑 收藏 1.查看是否已经安装Python Centos7默认安装了python2.7.5 因为一些命令要用它比如yum 它使用的是python2.7.5. 使用python -V命令查看一下是否安装Python: 然后查看一下Python可执行文件的位置: 进入到