module 'pandas' has no attribute 'expression' 解决办法
2018-04-03 10:23
681 查看
导入
遇到了错误
在stackoverflow找了答案:
https://stackoverflow.com/questions/43833081/attributeerror-module-object-has-no-attribute-computation
原因是tensorflow pandas dask 之间的版本不匹配,pandas里面没有expression这个对象。在旧的版本就会存在。
所以,需要下面的版本:
python 3.5
tensorflow 1.2.1
pandas 0.19.2
dask 0.15.0
先查看上面所示的软件的版本
以管理员的身份运行命令提示符,然后卸载pandas,
然后安装这个版本的
其他的包以此类推,全部更新为这个几个版本之后,就可以成功导入所需要的包了。
import tensorflow as tf import skflow
遇到了错误
module 'pandas' has no attribute 'expression'
在stackoverflow找了答案:
https://stackoverflow.com/questions/43833081/attributeerror-module-object-has-no-attribute-computation
原因是tensorflow pandas dask 之间的版本不匹配,pandas里面没有expression这个对象。在旧的版本就会存在。
所以,需要下面的版本:
python 3.5
tensorflow 1.2.1
pandas 0.19.2
dask 0.15.0
先查看上面所示的软件的版本
pip show pandas
以管理员的身份运行命令提示符,然后卸载pandas,
pip uninstall pandas
然后安装这个版本的
conda install pandas=0.19.2
其他的包以此类推,全部更新为这个几个版本之后,就可以成功导入所需要的包了。
相关文章推荐
- [置顶] AttributeError: 'module' object has no attribute '_base' 可行解决办法
- Scrapy安装报错:AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'解决办法
- Mac 安装scrapy框架报错AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'解决办法
- python 2.x和3.x关于 'module' object has no attribute 'open'的解决办法
- python 2.x和3.x关于 'module' object has no attribute 'open'的解决办法
- AttributeError: 'module' object has no attribute '_base' 可行解决办法
- AttributeError: 'module' object has no attribute 'SSL_ST_INIT' 解决办法
- python AttributeError: 'module' object has no attribute 'dumps'解决办法
- AttributeError: 'module' object has no attribute '_base' 可行解决办法
- 【积累系列】'module' object has no attribute 'urlopen'解决方法
- AttributeError: 'module' object has no attribute 的解决方法
- 解决 AttributeError: 'module' object has no attribute 'convolution'
- AttributeError: 'module' object has no attribute 'AF_INET'处理办法——python
- 莫名其妙报module 'urllib' has no attribute 'request'的解决方法
- 出现module 'xgboost' has no attribute 'DMatrix'的临时解决方法
- Tensorflow protobuf版本报错问题解决(AttributeError: 'module' object has no attribute 'Default')
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Ubuntu运行scrapy报“scrapy: 'module' object has no attribute 'OP_SINGLE_ECDH_USE'错误解决方法”
- import json后,报错:AttributeError: 'module' object has no attribute 'dumps,原因分析及解决方法
- AttributeError: ‘module’ object has no attribute’xxx 问题解决