AttributeError: 'module' object has no attribute 'imsave'

来源:互联网 发布:淘宝收到法院传票 编辑:程序博客网 时间:2024/05/21 17:53
source activate tensorflowpython>>>import scipy.misc>>>scipy.misc.imsave

报错如下:

Traceback (most recent call last):  File "<stdin>", line 1, in <module>AttributeError: 'module' object has no attribute 'imsave'

解决方案如下:
分别下载:
moviepy-0.2.3.2.tar.gz
pillow_3.3.1.orig.tar.xz
下载地址:http://pan.baidu.com/s/1skZH5z3

安装moviepy-0.2.3.2.tar.gz

source activate tensorflow# 进入到moviepy-0.2.3.2.tar.gz目录下tar -zxvf moviepy-0.2.3.2.tar.gzcd moviepy-0.2.3.2lspython setup.py install

安装pillow_3.3.1.orig.tar.xz

source activate tensorflow# 进入到pillow_3.3.1.orig.tar.xz目录下tar Jxvf pillow_3.3.1.orig.tar.xzcd pillow_3.3.1lspython setup.py install

测试:

source activate tensorflowpython>>>import scipy.misc>>>scipy.misc.imsave

如下图所示:

这里写图片描述

0 1
原创粉丝点击