centos install scipy 问题:File "scipy/linalg/setup.py", line 20, in configuration raise NotFoundE

前端之家收集整理的这篇文章主要介绍了centos install scipy 问题:File "scipy/linalg/setup.py", line 20, in configuration raise NotFoundE前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
依赖包: pyparsing、dateutil、scipy、numpy、libpng 1.2 (or later)、`freetype` 1.4 (or later) 安装pyparsing: # pip install pyparsing 安装numpy: # pip install numpy 安装dateutil: # pip install Python-dateutil 安装scipy: # pip install scipy 待测:sudo yum -y install gcc gcc-c++ numpy python-devel scipy(不过这些包都装好了) 报错: # pip install scipy Downloading/unpacking scipy Downloading scipy-0.17.1.tar.gz (12.4MB): 81kB downloaded Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/basecommand.py",line 139,in main status = self.run(options,args) File "/usr/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/commands/install.py",line 266,in run requirement_set.prepare_files(finder,force_root_egg_info=self.bundle,bundle=self.bundle) File "/usr/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py",line 1033,in prepare_files self.unpack_url(url,location,self.is_download) File "/usr/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py",line 1161,in unpack_url retval = unpack_http_url(link,self.download_cache,self.download_dir) File "/usr/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/download.py",line 554,in unpack_http_url download_hash = _download_url(resp,link,temp_location) File "/usr/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/download.py",line 458,in _download_url chunk = resp.read(4096) File "/usr/local/lib/python2.7/socket.py",line 380,in read data = self._sock.recv(left) File "/usr/local/lib/python2.7/httplib.py",line 567,in read s = self.fp.read(amt) File "/usr/local/lib/python2.7/socket.py",in read data = self._sock.recv(left) File "/usr/local/lib/python2.7/ssl.py",line 246,in recv return self.read(buflen) File "/usr/local/lib/python2.7/ssl.py",line 165,in read return self._sslobj.read(len) SSLError: The read operation timed out Storing complete log in /root/.pip/pip.log 解决方法: # pip --default-timeout=100 install django 重新安装scipy 各个安装包版本: nose-1.3.1 lapack-3.5.0 atlas-3.10.1 scipy-0.11.0 numpy-1.6.2 依赖关系:scipy的安装需要依赖于numpy、lapack、atlas(后两者都是线性代数工具包,不清楚的自行google),而numpy和sci的测试程序的运行又依赖于nose,因此,整个安装过程必须要按顺序执行的,否则是无法执行下去的。 安装nose: # pip install nose 安装lapack: #yum install lapack lapack-devel blas blas-devel 更新pip # pip install --upgrade pip 安装scipy: # pip install scipy 安装matplotlib: # pip install matplotlib 报错: 安装freetype: 依赖freetype-devel # yum install freetype-devel # yum install freetype 安装matplotlib: # cd matplotlib-1.5.1 # python setup.py install 测试: 参考:http://paperman825.blog.chinaunix.NET/uid-25691489-id-5602653.html 原文链接:https://www.f2er.com/centos/378412.html

猜你在找的CentOS相关文章