运用ocropy时报numpy.dot() fails when using keyword argument "out"的错误
来源:互联网 发布:守望先锋录制软件 编辑:程序博客网 时间:2024/05/20 16:33
运用ocropy时报numpy.dot() fails when using keyword argument "out"的错误
解决方案:
查了好久,基本没有遇到这个问题的,终于在以下这篇文章中断定是numpy的版本有问题,
http://grokbase.com/t/scipy.org/numpy-tickets/12bestzp7f/numpy-2248-numpy-dot-fails-when-using-keyword-argument-out
果然,查看了下numpy的版本(命令):
import numpy
numpy.version.version
发现是1.5.2,太老了,要求是1.9.2及以上,
接下来要做的便是,卸载现有的1.5.2的numpy, 于是乎用
sudo pip uninstall numpy
结果测试发现,numpy.version.version 还是1.5.2,
咋办?google,参照:
http://numpy-discussion.10968.n7.nabble.com/how-to-uninstall-numpy-td4555.html
说要执行以下命令,删除很多文件:
>> $ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy/
>> $ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy-*.egg*
>> $ sudo rm -rf /usr/local/bin/f2py
但是,ls 看了下,我这根本没有这些文件,
咋办?
不管了,参照:
http://stackoverflow.com/questions/19839488/upgrade-to-numpy-1-8-0-on-ubuntu-12-04
直接执行:
sudo pip install numpy --upgrade
哈哈,再查看版本,嗯,不错,已经是1.9.2了,
dot的错误也没有了,瞬间心情愉快,哈哈。
- 运用ocropy时报numpy.dot() fails when using keyword argument "out"的错误
- 关于错误: 'encoding' is an invalid keyword argument for this function的错误原因之一
- pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'
- pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'
- 错误解决:parse() got an unexpected keyword argument 'transport_encoding'
- pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'
- pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'
- pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'
- numpy中关于*和dot的区别
- numpy中关于*和dot的区别
- numpy中关于*和dot的区别
- numpy中dot与*的区别
- unexpected keyword argument 'maxlength'
- render_to_string() got an unexpected keyword argument 'context_instance'的解决方法
- TypeError: exchange_declare() got an unexpected keyword argument 'type'的解决办法
- ZuulProxy fails with “RibbonCommand timed-out and no fallback available” when it should do failover
- Auto-declare fails when using Oracle 11g R2 and WebSphere Application Server 6.1
- SVN提交时报out-of-date错误
- 二维数组作为参数的函数定义及调用方法
- TL431稳压基准源简介及其应用
- 基于HI3518E的wifi门铃方案
- 配置rnnlib(刚刚配置完成)
- ACM/IPCP新生入门指南
- 运用ocropy时报numpy.dot() fails when using keyword argument "out"的错误
- npoi读写excel导致excel文件格式损坏
- Unity3D学习资源—委托和lambda表达式一
- 创建dialog时传入content的错误
- 导航栏,设置块对象
- Android webview使用详解
- DCOM配置
- ios fiddler调试环境配置
- eth0:01的意思