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
网上查到的解决方法几个都是修改源代码,原因是numpy的版本比较新,于是想能否不修改源代码而降低numpy的版本来解决?于是卸载了原来安装的numpy1.13.3,重新安装为numpy1.10,运行语句如下:
pip uninstall numpy
pip install numpy==1.10
相关文章推荐
- TypeError: only integer scalar arrays can be converted to a scalar index
- TypeError: only integer scalar arrays can be converted to a scalar index
- numpy array TypeError: only integer scalar arrays can be converted to a scalar index
- only integer scalar arrays can be converted to a scalar index
- TypeError: only integer scalar arrays can be converted to a scalar index
- TensorFlow报错:input_data.py only integer scalar arrays can be converted to a scalar
- datatype强制性改变,提示TypeError: only length-1 arrays can be converted to Python scalars
- bug—TypeError: only length-1 arrays can be converted to Python scalars
- 【TypeError: only length-1 arrays can be converted to Python scalars】
- TensorFlow MNIST机器学习入门 input_data.py only integer scalar arrays can be converted to a scalar
- TypeError: only length-1 arrays can be converted to Python scalars
- TypeError: only length-1 arrays can be converted to Python scalars
- An error occurred at line: 7 in the generated java file Only a type can be imported. java.util.list
- Pymongo - TypeError: index 'xxxx' cannot be applied to Cursor instances
- Unable to compile class for JSP: Only a type can be imported. com.gao.model.OutputStatistics resolve
- Only a type can be imported. leier.JDBC_Connection resolves to a package
- Only a type can be imported. com.xxx.xxx.XXX resolves to a package 解决方法
- Only a type can be imported. xxxx resolves to a package
- Only a type can be imported. javax.persistence.Id resolves to a package
- Java错误提示--------Only a type can be imported. java.awt.event resolves to a package