[英]unable to import pandas
I installed some backtesting libraries which updated pandas version. 我安装了一些回溯库来更新熊猫的版本。
Since then I'm getting ImportError: cannot import name 'hashtable'
从那时起我得到
ImportError: cannot import name 'hashtable'
I referred the existing question: Hashtable Error in Pandas . 我提到了一个现有的问题: 熊猫中的哈希表错误 。
And tried 并尝试
> pip install pandas
> conda update pandas
but nothing seems working. 但似乎没有任何效果。 Any suggestions are welcome.
欢迎任何建议。
EDIT : 编辑 :
I removed pandas from conda using conda remove --force pandas
And reinstalled it. 我使用
conda remove --force pandas
pandas从conda中conda remove --force pandas
然后重新安装了它。 Now I'm getting new error 现在我收到新的错误
AttributeError: module 'pandas' has no attribute 'compat'
Thanks 谢谢
I removed pandas
from lib/site-packages
and reinstalled pandas using pip install pandas
. 我从
lib/site-packages
删除了pandas
,并使用pip install pandas
重新pip install pandas
。 It worked. 有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.