python-配置国内下载镜像
2017-05-15 16:18
337 查看
anaconda
conda clean --lock conda config --set show_channel_urls yes conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/[/code]
pypipip3 install -i https://pypi.doubanio.com/simple/ selenium pip install 你要下载的包 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com http://mirrors.aliyun.com/pypi/simple/ pip install 你要下载的包 -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host pypi.douban.com pip install 你要下载的包 -i https://pypi.mirrors.ustc.edu.cn/simple/ --trusted-host pypi.douban.com pip install 你要下载的包 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.douban.com pip install 你要下载的包 -i http://pypi.mirrors.ustc.edu.cn/simple/ --trusted-host pypi.douban.com
永久配置:
linux的文件在~/.pip/pip.conf,
windows在%HOMEPATH%\pip\pip.ini),
[global]
index-url = http://pypi.douban.com/simple
[install]
trusted-host=pypi.douban.com
脚本:#!/usr/bin/python import os package = raw_input("Please input the package which you want to install!\n") command = "pip install %s -i http://pypi.mirrors.ustc.edu.cn/simple --trusted-host pypi.mirrors.ustc.edu.cn" % package os.system(command)
easyeasy_install -i https://pypi.doubanio.com/simple/ selenium
相关文章推荐
- Docker切换国内镜像下载源——配置国内免费registry mirror
- Docker - 配置国内加速器加速镜像下载。
- Python-利用国内镜像解决PIP下载安装速度
- python手动下载并安装第三方库和国内第三方库镜像资源链接
- 国内python下载的镜像
- docker的安装和配置国内镜像加快下载速度
- Python pip 下载速度慢? Windows 设置 国内源,用 阿里云 国内镜像 加速
- [Python]Python pip用国内镜像下载的办法
- 使用Pyenv通过国内镜像下载Python(绕过官方下载地址)
- Docker配置国内加速器加速镜像下载的方法
- 基于Python pip用国内镜像下载的方法
- 老生常谈的问题,国内安卓SDK下载镜像地址以及配置方法
- docker read tcp 50.17.62.194:443: connection reset by peer 镜像下载不下来需要配置国内服务器
- Python 让PIP源使用国内镜像,提升下载速度和安装成功率
- python国内镜像下载
- python pip 下载慢 配置使用国内源配置
- Python pip 下载速度慢? Windows 设置 国内源,用 阿里云 国内镜像 加速
- pip 配置python国内镜像源
- Python pip用国内镜像下载的办法
- Python自动化之配置Python模块国内镜像