我已经尝试过几次导入matplotlib并删除并重新安装所有可能的组合
我正在使用conda作为软件包管理系统,并且pip指向conda
尝试运行以下程序:
import matplotlib.pyplot as plt
或者只是:
import matplotlib
创建以下结果:
Traceback (most recent call last):
File "C:/Users/Name/IdeaProjects/zzArchiv/Robot project/RobotProject/DeepLearning/approaches/hvasstutorial/anothermain.py", line 22, in <module>
import matplotlib.pyplot as plt
File "D:\ProgramData\Anaconda3\lib\site-packages\matplotlib\__init__.py", line 127, in <module>
from . import cbook
File "D:\ProgramData\Anaconda3\lib\site-packages\matplotlib\cbook\__init__.py", line 2640, in <module>
class _StringFuncParser(object):
File "D:\ProgramData\Anaconda3\lib\site-packages\matplotlib\cbook\__init__.py", line 2652, in _StringFuncParser
_funcs['quadratic'] = _FuncInfo(np.square,
AttributeError: module 'numpy' has no attribute 'square'
我在Google上进行了很多搜索,但没有找到任何有效的解决方案(大多数告诉我删除并重新安装numpy / matplotlib,这是我做过几次),如果您有任何线索,请帮忙
谢谢