【发布时间】:2021-04-01 09:20:51
【问题描述】:
所以我搜索了很多,但我无法解决问题。每次我尝试使用 matplotlib 或类似(matplotlib.something)时,python 都无法导入它。它说:
File "C:\Users\Privacy\ArduConnect.py", line 8, in <module>
import matplotlib
File "C:\Users\Privacy\AppData\Roaming\Python\Python39\site-packages\matplotlib\__init__.py", line 107, in <module>
from . import cbook, rcsetup
File "C:\Users\Privacy\AppData\Roaming\Python\Python39\site-packages\matplotlib\cbook\__init__.py", line 28, in <module>
import numpy as np
File "C:\Users\Privacy\AppData\Roaming\Python\Python39\site-packages\numpy\__init__.py", line 305, in <module>
_win_os_check()
File "C:\Users\Privacy\AppData\Roaming\Python\Python39\site-packages\numpy\__init__.py", line 302, in _win_os_check
raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('C:\\Users\\Privacy\\AppData\\Roaming\\Python\\Python39\\site-packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: "A link to tinyurl but stackoverflow blocks it"
我已经安装了 matplotlib。我必须重新安装 Numpy 吗?究竟如何? 感谢您的支持。
【问题讨论】:
-
您阅读链接了吗?它准确地告诉你该怎么做
标签: python python-3.x numpy matplotlib