本文主要是介绍AttributeError: partially initialized module ‘charset_normalizer‘ has no attribute ‘md__mypyc‘,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题描述:装tensorflow后,import tensorflow as tf 报错
版本搭配:Python=3.x+cuda=11.2+cudnn=8.1+tensorflow=2.10
报错:AttributeError: partially initialized module 'charset_normalizer' has no attribute 'md__mypyc' (most likely due to a circular import)
原因:缺少软件包
解决方法:
pip install chardet
问题解决!!!
这篇关于AttributeError: partially initialized module ‘charset_normalizer‘ has no attribute ‘md__mypyc‘的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!