报错:import pandas._libs.parsers as parsers RuntimeWarning

简介: 报错:import pandas._libs.parsers as parsers RuntimeWarning

问题

线上运行程序发现报错:

import pandas._libs.parsers as parsers RuntimeWarning

解决

参考了其他类似问题,是因为numpy 版本过高,卸载后安装低版本即可

通过 pip 检查环境版本

pip list

线上环境


numpy==1.15.0
pandas==0.23.4


本地环境


numpy==1.13.3
pandas==0.23.4


果然numpy 的版本不一致,卸载numpy 重装即可解决问题


$ pip uninstall -y numpy
$ pip install numpy==1.13.3


参考


使用numpy时警告:RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility

RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility


相关文章
|
5月前
|
Python
【Python】已解决:(pandas读取DataFrame列报错)raise KeyError(key) from err KeyError: (‘name‘, ‘age‘)
【Python】已解决:(pandas读取DataFrame列报错)raise KeyError(key) from err KeyError: (‘name‘, ‘age‘)
418 0
|
5月前
|
开发者 Python
【Python】已解决:(pandas read_excel 读取Excel报错)ImportError: Pandas requires version ‘2.0.1’ or newer of ‘x
【Python】已解决:(pandas read_excel 读取Excel报错)ImportError: Pandas requires version ‘2.0.1’ or newer of ‘x
324 0
|
编解码 Python
pandas - read_csv报错:‘utf-8‘/‘gbk‘ codec can‘t decode byte 0xb1 in position 0:invalid start byte
pandas - read_csv报错:‘utf-8‘/‘gbk‘ codec can‘t decode byte 0xb1 in position 0:invalid start byte
431 0
Pandas pd.merge() 报错:ValueError: You are trying to merge on int64 and object columns.
Pandas pd.merge() 报错:ValueError: You are trying to merge on int64 and object columns.
Pandas pd.merge() 报错:ValueError: You are trying to merge on int64 and object columns.
|
Python
pandas中报错:TypeError: reduction operation ‘argmax‘ not allowed for this dtype 的解决办法
pandas中报错:TypeError: reduction operation ‘argmax‘ not allowed for this dtype 的解决办法
840 0
pandas中报错:TypeError: reduction operation ‘argmax‘ not allowed for this dtype 的解决办法
pandas读excel类型文件报错: xlrd.biffh.XLRDError: Excel xlsx file; not supported
pandas读excel类型文件报错: xlrd.biffh.XLRDError: Excel xlsx file; not supported
Pandas报错AttributeError: Cannot access callable attribute 'sort_values' of 'DataFrameGroupBy' objects
Pandas报错AttributeError: Cannot access callable attribute 'sort_values' of 'DataFrameGroupBy' objects
Pandas 报错 TypeError: ‘Series‘ objects are mutable, thus they cannot be hashed
Pandas 报错 TypeError: ‘Series‘ objects are mutable, thus they cannot be hashed
|
Python
Pandas报错no attribute 'convert_dtypes'解决办法
Pandas报错no attribute 'convert_dtypes'解决办法
291 0
|
Python
pandas.read_csv() 报错 OSError: Initializing from file failed,报错原因分析和解决方法
pandas.read_csv() 报错 OSError: Initializing from file failed,报错原因分析和解决方法
654 0