python - Python:没有用于 numpy 1.19.4 的名为 numpy.testing.decorators 的模块
问题描述
我最近在安装另一个新模块时将我的 numpy 更新到 1.19.4 版本,将我的 scipy 更新到 1.5.4。
我现在收到一条错误消息,上面写着:
from numpy.testing.decorators import slow #noqa
>>> ModuleNotFoundError: No module named 'numpy.testing.decorators'
我不知道如何解决这个问题。会不会跟更新有关系?
我在 Anaconda 中使用 Spyder
解决方案
对于 numpy 版本1.19.4
的装饰器现在在._private
from numpy.testing._private.decorators import slow
应该管用
推荐阅读
- r - knitr 代码块选项来隐藏 roxygen 注释
- python - 如何在 PyGame 中使文本闪烁?
- c# - 解密聊天客户端中的传入消息时出错
- python - 如何实现色度特征 LSTM 学习
- python - AES 密钥长度不正确(89 字节)
- python - 使用 Squid 代理和 ICAP 的 AWS boto3 上传对象问题
- ignite - 是否可以在 Ignite 中的多值字段上创建索引?
- ssh - Ansible - AWX (Tower) - 如何正确设置基于 SSH 密钥的连接
- python - jupyter notebook 上的 TensorFlow 看不到我的 GPU
- mysql - 尝试在 Windows 上执行 docker-compose 文件但出现错误我的绑定挂载配置不正确