pip源-PyPI使用国内源
来源:互联网 发布:linux命令创建多层目录 编辑:程序博客网 时间:2024/05/19 06:35
国内源
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学http://pypi.hustunique.com/
山东理工大学 http://pypi.sdutlinux.org/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
使用方法
使用方法很简单,直接 -i 加 url 即可!如下:
pip install web.py -i http://pypi.douban.com/simple如有报错按如下执行:
pip install web.py -i http://pypi.douban.com/simple - -trusted-host pypi.douban.com例如: 可以在使用pip的时候在后面加上-i参数,指定pip源 eg: pip install scrapy -i
https://pypi.tuna.tsinghua.edu.cn/simple
修改源方法
永久修改:
Linux: 修改 ~/.pip/pip.conf (没有就创建一个), 内容如下:
[global]
index-url = http://pypi.douban.com/simple
[install]
trusted-host=pypi.douban.com
windows:修改 windows在%HOMEPATH%\pip\pip.ini),
例如:C:\Users\xx\pip,新建文件pip.ini,内容如下
[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn
- pip源-PyPI使用国内源
- PyPI使用国内源
- PyPI使用国内源
- 转|PyPI使用国内源
- python pip使用国内源
- Pip 国内源的使用
- 国内的pythoner强烈建议使用豆瓣的pypi源
- [pypi]pip源镜像,官网被墙时使用
- pip 配置使用国内 阿里云/豆瓣 pip源
- Mac pip 使用国内源 安装 scrapy
- 让PIP源使用国内镜像
- 让PIP源使用国内镜像
- 配置pip国内源
- pip国内源
- python pip 国内源
- pip 国内源提速
- pip国内源
- PIP国内源
- 一致性哈希算法
- AttributeError: module 'cv2' has no attribute 'SIFT'
- c++实现引用计数智能指针
- Qt笔记-MSVC报newline in constant(即奇数个中文汉字的问题)
- 2-1 Java动态加载类
- pip源-PyPI使用国内源
- 第一个docker测试容器(交互式)
- Win7+VS2013+OpenCV3.0.0详细配置
- 图像的卷积
- 指定CentOS7虚拟机IP
- linux-基础-进程通讯(一)-管道通信/信号/内存共享
- asp.net c# 异步日志通用类(3)
- 简单文件输出函数
- 二进制及其它进制相互转换(一)