安装python包时报错
pip install numpy 时 报错:
Traceback (most recent call last):
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_vendor\urllib3\response.py", line 331, in _error_catcher
yield
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_vendor\urllib3\response.py", line 413, in read
data = self._fp.read(amt)
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 62, in read
data = self.__fp.read(amt)
File "d:\学习\python\python-3.6.5\lib\http\client.py", line 449, in read
n = self.readinto(b)
File "d:\学习\python\python-3.6.5\lib\http\client.py", line 493, in readinto
n = self.fp.readinto(b)
File "d:\学习\python\python-3.6.5\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "d:\学习\python\python-3.6.5\lib\ssl.py", line 1009, in recv_into
return self.read(nbytes, buffer)
File "d:\学习\python\python-3.6.5\lib\ssl.py", line 871, in read
return self._sslobj.read(len, buffer)
File "d:\学习\python\python-3.6.5\lib\ssl.py", line 631, in read
v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_internal\basecommand.py", line 141, in main
status = self.run(options, args)
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_internal\commands\install.py", line 299, in run
resolver.resolve(requirement_set)
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_internal\resolve.py", line 102, in resolve
self._resolve_one(requirement_set, req)
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_internal\resolve.py", line 256, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_internal\resolve.py", line 209, in _get_abstract_dist_for
self.require_hashes
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_internal\operations\prepare.py", line 283, in prepare_linked_requirement
progress_bar=self.progress_bar
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_internal\download.py", line 836, in unpack_url
progress_bar=progress_bar
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_internal\download.py", line 673, in unpack_http_url
progress_bar)
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_internal\download.py", line 897, in _download_http_url
_download_url(resp, link, content_file, hashes, progress_bar)
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_internal\download.py", line 617, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_internal\utils\hashes.py", line 48, in check_against_chunks
for chunk in chunks:
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_internal\download.py", line 585, in written_chunks
for chunk in chunks:
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_internal\utils\ui.py", line 159, in iter
for x in it:
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_internal\download.py", line 574, in resp_read
decode_content=False):
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_vendor\urllib3\response.py", line 465, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_vendor\urllib3\response.py", line 430, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "d:\学习\python\python-3.6.5\lib\contextlib.py", line 99, in __exit__
self.gen.throw(type, value, traceback)
File "d:\学习\python\python-3.6.5\lib\site-packages\pip\_vendor\urllib3\response.py", line 336, in _error_catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
解决:使用映像安装
格式:pip install 包名 -i https://pypi.doubanio.com/simple
pip install numpy -i https://pypi.doubanio.com/simple
安装python包时报错的更多相关文章
- Windows10使用pip安装python包时报错-UnicodeDecodeError: 'ascii' codec c
本人是Windows10,用的方法2解决的 原文链接http://blog.csdn.net/all_over_servlet/article/details/45112221 先交待下开发环境: 操 ...
- windows下pip安装python模块时报错
windows下pip安装python模块时报错总结 装载于:https://www.cnblogs.com/maxaimee/p/6515165.html 前言: 这几天把python版本升级后, ...
- windows下pip安装python模块时报错【转】
windows下pip安装python模块时报错总结 请给作者点赞--> 原文链接 1 权限问题 C:\Users\ljf>pip install xlwt Exception: Trac ...
- 安装Python包报错——ReadTimeoutError
一.问题:安装python包的时候报错ReadTimeoutError——Read time out. 二.解决办法三种方法,一是切换下载源:二是下载相应平台的安装包后安装:三是下载源码编译安装: ...
- pip安装python包时报字符编码错
比如安装scikit-learn时报错: django ascii’ codec can’t encode character 原因是用户目录或用户名存在中文,ascii不能解码,解决办法是在Pyth ...
- linux python3安装whl包时报错解决:is not a supported wheel on this platform
原因1 你下载安装的包不是当前平台所支持的 原因2 你下载的包,不符合你所在的平台的安装whl的名称规范,所以出错.比如当前我要安装的包是:pymssql-2.1.5-cp36-cp36m-manyl ...
- windows下pip安装python模块时报错总结
http://www.cnblogs.com/liaojiafa/p/5100550.html 前言: 这几天把python版本升级后,发现pip安装模块好多都报错(暂不确定是不是因为升级导致的),我 ...
- 使用epel源安装依赖包时报错
[root@test_web1 ~]# rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch. ...
- Linux安装rpm包时报错Header V3 DSA/SHA1 Signature, key ID 1d1e034b: NOKEY解决办法
这是因为yum安装了旧版本的GPG key造成的,解决办法: rpm --import /etc/pki/rpm-gpg/RPM* Header V3 DSA/SHA1 Signature, key ...
随机推荐
- February 3rd, 2018 Week 5th Saturday
Life takes on the meaning that you give it. 你赋予生活什么,生活就是什么样子. I always wonder why on earth I am here ...
- css固定背景图位置 实现屏幕滚动时 显示背景图不同区域
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8&quo ...
- php 对象数组互转
数组转对象 function array2object($array) { if (is_array($array)) { $obj = new StdClass(); forea ...
- centos增加环境变量
在Linux CentOS系统上安装软件后,如果需要运行软件,一般是需要进入到软件的bin目录下进行才可以运行相应命令,否则会提示未找到命令.为了使用方便,我们一般把相应的bin目录增加到环境变量中( ...
- python3 用户登录 day01
'''用户登录作业需求:1. 三次重试机会2. 每次输错误时显示剩余错误次数'''num = 1while num <= 3: username = input("请输入用户名:&qu ...
- <数据结构与算法分析>读书笔记--最大子序列和问题的求解
现在我们将要叙述四个算法来求解早先提出的最大子序列和问题. 第一个算法,它只是穷举式地尝试所有的可能.for循环中的循环变量反映了Java中数组从0开始而不是从1开始这样一个事实.还有,本算法并不计算 ...
- Python基础(3)if_else、for、while、break与continue
1.if ... else a=6 if a>=5: print("The a is bigger than 5") else: print("The a is s ...
- 使用verdaccio 搭建npm私有仓库
使用verdaccio 搭建npm私有仓库 1. 为什么要搭建私有的npm仓库? 随着公司的业务越来越复杂,项目迭代速度也越来越快,那么项目间的常用的业务代码共享变得非常之有必要.但是对于公司的 ...
- Intel CPU 漏洞分析
Intel CPU漏洞分析报告 预备知识 存储分级 由于计算机存储分级的特性(第一级:寄存器,第二级:高速缓存,第三级:内存,第四级:磁盘),每一级之间的访问速度差距高达数量级.所以处理器会将用到的数 ...
- AI 正则化
正则化,是减少泛化误差的技术.