栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

ImportError: cannot import name ‘

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ImportError: cannot import name ‘

numpy版本不匹配,无法导入_validate_lengths,在网上找了很多解决办法,都不好用,只好自己分析。

打开arraycrop.py,问题瞬间解决。。。

# The below functions are retained in comments in case the NumPy architecture
# changes and we need copies of these helper functions for `crop`.
# These are identical to functions in numpy.lib.arraypad.py as of NumPy v1.11

将这段文字下方被注释的函数选中,解除注释,再注释文件开头处,与_validate_lengths相关的import即可。。。

原来python更新时早就考虑到这个问题了,小丑竟是我自己。。。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/740850.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号