python - Python3:更新 numpy、scipy 和 scikit-learn 后没有名为“numpy.testing.decorators”的模块
问题描述
此处已回答了一个相关问题。但是,在我更新我numpy
的scipy
、 和scikit-learn
包后,
xxx:~$ pip3 freeze | grep numpy
numpy==1.19.2
xxx:~$ pip3 freeze | grep scipy
scipy==1.5.2
xxx:~$ pip3 freeze | grep scikit-learn
scikit-learn==0.23.2
并运行(我重新启动终端)
import scipy.stats as st
我仍然有错误ModuleNotFoundError: No module named 'numpy.testing.decorators'
。
一条评论:
此错误仅针对 Python3 显示。对于 Python2,它通过了。
解决方案
推荐阅读
- javascript - 无法将“java.lang.String”类型的值转换为所需的“long”类型;对于输入字符串:“{id}”
- sql - 逐年查询课程中的学生注册
- highcharts - 多个系列的标签重叠
- javascript - 为什么数组的第一个元素是空的?
- selenium - 有没有办法限制chrome webdriver的内存使用?
- encryption - 进度 4GL DECRYPT 失败
- docker - Docker 容器不能在一个网络中通信
- css - Material UI Collapse 隐藏时占用空间
- r - 将“常规”绘图转换为 ggplot 对象(然后绘图)
- plugins - 当我使用短代码 wordPress 时,所有产品都显示在一行中