切换方法参考https://blog.csdn.net/chenghuikai/article/details/55258957 实测,确实解决了pipenv这个问题,否则只能--skip-lock. 基本抄录一下 建立配置文件 如果是linux ~/.pip/pip.conf 如果是win C:\Users\xx\pip\pip.ini 没有pip文件夹的话,就自己创建 mkdir ~/.pip 内容如下: [global] index-url = https://pypi.tuna.tsin…
python官方镜像是基于debian的.国内使用时定制一下,加快下载速度. 1 debian本身使用国内源 dockfile中: #国内debian源 ADD sources.list /etc/apt/ sources.list在dockerfile同目录下: deb http://mirrors.ustc.edu.cn/debian/ stretch main non-free contribdeb http://mirrors.ustc.edu.cn/debian/ stretch-up…
国内访问Maven仓库非常慢,笔者今天忘记切换国内源更新Maven仓库竟然更新了一下午.如果改成国内的源,那么很快就更新完成了. 在IDEA中打开“Settings”(快捷键++): 在搜索框中输入“maven”,找到Maven设置菜单,点击进去,在红框所示路径新建“settings.xml”文件,并写入如下内容,勾选“”override,如下图所示: 图1.Maven设置页面 文件写入保存后,点击“apply”–>“ok”,再次更新Maven仓库时,就是使用的国内源了.…
pip换国内源 1.国内常用源   阿里云 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/sim…
最近在Linux里面使用pip安装应用的速度十分的慢,于是便上网找了一些国内的源. 清华大学:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:https://mirrors.aliyun.com/pypi/simple 中国科学技术大学 https://pypi.mirrors.ustc.edu.cn/simple 豆瓣:http://pypi.douban.com/simple 修改pip为国内源 修改家目录隐藏的配置文件 vim ~/.pip/pip…
众所周知,Python使用pip方法安装第三方包时,需要从 https://pypi.org/ 资源库中下载,但是会面临下载速度慢,甚至无法下载的尴尬,这时,你就需要知道配置一个国内源有多么重要了,通过一番摸索和尝试,总结了一些经验,分享给大家: 首先贴一下下载速度的对比图: 图1:国外官网下载 图2:国内镜像下载 给大家推荐几个值得拥有的国内镜像站  [ 个人推荐清华大学pypi镜像站(https://mirrors.tuna.tsinghua.edu.cn/help/pypi/),每五分钟同…
对于Python开发用户来讲,PIP安装软件包是家常便饭.但国外的源下载速度实在太慢,浪费时间.而且经常出现下载后安装出错问题.所以把PIP安装源替换成国内镜像,可以大幅提升下载速度,还可以提高安装成功率. 国内源: 新版ubuntu要求使用https源,要注意. 清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.us…
最近使用 pip 安装包,动辄十几 k 甚至几 k 的下载速度,确实让人安装的时候心情十分不好.所以还是要给 pip 换一个国内的源.可以显著的提升安装速度.有更多的时间来研究算法. 下面,列一下收集到的国内源: 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣 (douban) http://pypi.douban.com/simple/ 清华大学 http…
国内源: 阿里云 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/ Linux环境: 可以直接使用镜像源,加 -i 指定地址: sudo pip install -i http://pypi.douba…
临时使用: 可以在使用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-…