您的位置:首页 > 其它

TypeError: only integer scalar arrays can be converted to a scalar index

2017-12-31 21:10 696 查看
   今天运行这个程序https://github.com/tflearn/tflearn/blob/master/examples/basics/weights_persistence.py,报错标题的错误

网上查到的解决方法几个都是修改源代码,原因是numpy的版本比较新,于是想能否不修改源代码而降低numpy的版本来解决?于是卸载了原来安装的numpy1.13.3,重新安装为numpy1.10,运行语句如下:

pip uninstall numpy
pip install numpy==1.10
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐