pip安装时使用豆瓣源

国内源:

清华: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/

pip3 install 模块名 -i 源地址

原文地址:https://www.cnblogs.com/z-x-y/p/9475364.html

时间: 2024-08-30 09:09:42

pip安装时使用豆瓣源的相关文章

Python使用pip安装速度慢换源

在是使用pip安装的时候总是超时 换源 豆瓣:http://pypi.douban.com/simple/ 清华:https://pypi.tuna.tsinghua.edu.cn/simple 临时使用: 可以在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn/simple 例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple gevent 永久修改: linux下,修改 ~/.pip

使用pip安装时遇到文件拒绝访问和版本升级的问题及解决方法

使用系统win10,使用pip安装selenium报错时的解决方法 pip install selenium时提示: PermissionError: [WinError 5] 拒绝访问.: 'c:\\program files\\python36\\Lib\\site-packages\\urllib3'You are using pip version 9.0.1, however version 18.0 is available.You should consider upgrading

python的pip安装时,使用国内Pypi源

有时,国外的网速确实不理想. 想安装python库,还是国内快点. 参考URL: http://www.mamicode.com/info-detail-2248964.html 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 https://pypi.tuna.tsin

Windows下,python pip安装时ReadTimeoutError解决办法

一般情况下PIP出现ReadTimeoutError都是因为被GFW给墙了,所以一般遇到这种问题,我们可以选择国内的镜像来解决问题. 在Windows下: C:\Users\Administrator\下新建pip文件夹,在创建pip.ini文件,拷贝下面代码进去,保存. [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple 其实就是把python的源换成了清华源,应该能解决问题. 国内源: 新版ubuntu要求使用https

Win10上Python3通过pip安装时出现UnicodeDecodeError

http://blog.csdn.net/qq_33530388/article/details/68933201 解决方法: 打开 c:\program files\python36\lib\site-packages\pip\compat\__init__.py 约75行 return s.decode('utf_8') 改为return s.decode('cp936') 原因: 编码问题,虽然py3统一用utf-8了.但win下的终端显示用的还是gbk编码. 原文地址:https://w

pip安装时ReadTimeoutError解决办法

有一个本地服务器,网速很慢,下载老是出错,出现 pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. 经过google,发现用下面的内容就可以完美解决 pip --default-timeout=100 install gevent 设置时间为100秒 原文地址:https://www.cnblog

pip安装时的异常,找不到lib2to3\\Grammar.txt

[From] http://jahu.iteye.com/blog/2353325 异常 : [Errno 2] No such file or directory: 'd:\\python\\python35.zip\\lib2to3\\Grammar.txt' 问题  : phton35.zip 没有 lib2to3 目录, 解决 从官网上下载一个3.6的版本,从里面的 python36.zip文件中,把lib2to3目录复制进了  现在的python35.zip里面,就好了.

Python中如何用pip安装外部主机文件

在python中安装非自带python模块,有三种方式: easy_install pip 下载压缩包(.zip, .tar, .tar.gz)后解压, 进入解压缩的目录后执行python setup.py install命令 本文主要针对pip安装时可能会碰到的一种情况,及解决办法: 假如我要安装pylint模块,该模块非python自带模块,用import肯定不能导入,需要额外安装 >>> import pylint Traceback (most recent call last)

Win10+TensorFlow-gpu pip安装

中文官网安装教程:https://www.tensorflow.org/install/install_windows#determine_how_to_install_tensorflow 1.安装前须安装CUDA和cuDNN: cuDNN需要手动配置的环境变量: cuDNN:将C:\Program Files\cudnn-9.0-windows10-x64-v7.2.1.38\cuda\bin 添加到path中. 我这里使用的是pip方式安装的:pip3 install --upgrade