热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

numpy警告信息和scipy的导入imread错误

numpy要求大于1.13.3当前为1.17.4Requirementalreadysatisfied:numpy1.13.3inhomezzn.locallibpython3.

numpy要求大于1.13.3 当前为1.17.4
Requirement already satisfied:numpy>=1.13.3 in /home/zzn/.local/lib/python3.6/site-packages (from tensorflow-gpu==1.12) (1.17.4)


1.

导入tf警告:

FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'._np_qint8 = np.dtype([("qint8", np.int8, 1)])

等等
换版本为1.16.0试试

pip uninstall numpy
pip install numpy=1.16.0

不再报警告信息。(当前环境:py36tf12)


2.

from scipy.misc import imread, imresize, imsave
ImportError: cannot import name 'imread'

更改scipy版本为1.2.1 还是不行
然后下载pillow再安装scipy1.2.1
不再报错


推荐阅读
author-avatar
mobiledu2502906183
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有