安装theano时候发现报错:cannot install ''numpy'.It is a distutils installed project and thus we cannot ...

发现我安装theano的时候需要numpy需要1.9以上版本,而我之前自带的numpy是1.8版本,所以版本有问题。根本原因是theano需要的numpy版本不符合要求,但是numpy已经安装过了,所以无法进行直接卸载。提供两个解决方法:

解决方法1:直接找到numpy的安装目录,直接通过sudo rm 去对文件夹进行删除。(如果找不到文件夹,可以通过下面截图方式,一般都在dist-packages目录下)

方法2:(强行安装更新更高的版本)

sudo pip install numpy --ignore-installed numpy

---------------------
作者:lucas-nlp
来源:CSDN
原文:https://blog.csdn.net/qq_31747765/article/details/80303366
版权声明:本文为博主原创文章,转载请附上博文链接!

安装theano时候发现报错:cannot install ''numpy'.It is a distutils installed project and thus we cannot ...

原文地址:https://www.cnblogs.com/kofsony/p/11202672.html

时间: 2024-07-28 23:46:28

安装theano时候发现报错:cannot install ''numpy'.It is a distutils installed project and thus we cannot ...的相关文章

Centos6.5安装 scipy sciki-learn 一堆报错

最近给业务线安装python的扩展numpy,scripy,scikit-learn时,遇到了一堆报错,也走了一些弯路,费了好长时间,最好发现竟然是一个很简单的问题. 系统环境:Centos 6.5 Python: 2.7 pip install numpy 很顺利,没有报错 pip install scipy 一堆报错,报错大致如下 Installing scipy on redhat with error "no lapack/blas resources found" 然后就开始

python安装模块的时候报错error: command 'gcc' failed with exit status 1

[情况] 在写Python代码的时候,需要用到psutil模块,需要安装. 但是在安装时,报错:error: command 'gcc' failed with exit status 1 [解决步骤] 按照经验,觉得应该是缺少了gcc模块, 所以操作 [ yum install -y gcc ] 安装完成后,再继续安装psutil还是报同样的错,发现报错不是  not found gcc,可能是某个功能模块缺失 发现需要安装多一些依赖的包:  [ yum install -y libffi-d

centos6.8安装python3.7.3报错Can't connect to HTTPS URL because the SSL module is not available问题解决

环境:CentOS release 6.8 (Final) # 直接编译python3.7在使用pip3安装依赖的时候报错: Can't connect to HTTPS URL because the SSL module is not available. 解决方法: 1.编译安装OpenSSL 1.0.2j版本并重新配置环境变量 下载OpenSSL源码包: wget http://www.openssl.org/source/openssl-1.0.2j.tar.gz 解压缩,编译安装:

Linux下安装Nrpe软件相关报错

Linux下面安装nrpe软件时,如果进行配置时(./configure)  报错: 并且执行make all命令进行编译时候也报错: 解决办法:    在报错的服务器上执行yum -y install openssl-devel   命令安装ssl的库 之后再次执行./configure命令进行配置,如果配置成功应该显示如下信息: 再次使用make all 命令就不会报错了.make all完毕显示如下信息: Linux下安装Nrpe软件相关报错,布布扣,bubuko.com

Windows下使用pip安装python包是报错-UnicodeDecodeError: 'ascii' codec can't decode byte 0xcb in position 0

先交待下开发环境: 操作系统:Windows 7 Python版本:2.7.9 Pip版本:6.1.1 其他环境忽略 在windows下使用pip下载python包,出现如下错误 [plain] view plain copy Collecting xxxxxx Exception: Traceback (most recent call last): File "D:\Python27\lib\site-packages\pip-6.0.8-py2.7.egg\pip\basecommand.

安装Python3.6.2报错:zipimport.ZipImportError: can't decompress data; zlib not available

解决方法: 1.安装依赖zlib.zlib-devel 2.重新编译安装Python ./configure 重新编译安装:make & make install 安装Python3.6.2报错:zipimport.ZipImportError: can't decompress data; zlib not available

安装percona-toolkit.rpm时候报错:perl(Time::HiRes) is needed by percona-toolkit-2.2.16-1.noarch

1.安装percona-toolkit.rpm时候报错: warning: percona-toolkit.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEYerror: Failed dependencies: perl(Time::HiRes) is needed by percona-toolkit-2.2.16-1.noarch perl(Term::ReadKey) is needed by percona-toolkit

安装mongodb后启动报错libstdc++

安装mongo后启动报错如下图 显然说是libstdc++.so文件版本的问题,这种一般都是gcc版本太低了 接着查询gcc的版本    strings /usr/lib/libstdc++.so.6 | grep GLIBCXX 接着去找下libstdc++.so新点的版本,一定要根据自己的系统版本去找啊,由于我找错了版本报错系统位数不对 随后下载了一个64位的libstdc++.so.6.0.17的文件,然后软链成libstdc++.so.6 ln -s libstdc++.so.6.0.1

DELL 755行业用机安装windows 2003系统报错 0x0000007b

DELL 755行业用机用光盘安装windows 2003系统报错:0x0000007b 先放解决办法:将ACHI模式调整为ATA模式即可解决问题: 经过查阅网上资料,最终锁定如下帖子中说的有点道理, http://www.elecfans.com/jiadian/diannao/20121016292687.html [第三参考]安装widows XP时蓝屏代码0X0000007B的问题的解决方案用户在重新安装Windows XP的过程中,可能会出现安装过程中蓝屏,代码是0X0000007B的