谁能告诉我这是怎么回事,我用的anaconda,不知道里面有没有自带pillow,我不知道运行那个界面,然后在那个界面输入sudo easy_install pip,一头雾水,我感觉我上面有pillow这个包,不然调用都会提示错误,可运行出来不是想要的结果怎么办???求助各位了??
runfile('D:/pythondirectory/Myproject01/piao/aa.py', wdir='D:/pythondirectory/Myproject01/piao') PNG (1339, 4884) RGB Traceback (most recent call last): File "<stdin>", line 1, in <module> File "D:\Users\win\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 685, in runfile execfile(filename, namespace) File "D:\Users\win\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 85, in execfile exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace) File "D:/pythondirectory/Myproject01/piao/aa.py", line 10, in <module> im.thumbnall((200,100)) File "D:\Users\win\Anaconda3\lib\site-packages\PIL\Image.py", line 622, in __getattr__ raise AttributeError(name) AttributeError: thumbnall >>> runfile('D:/pythondirectory/Myproject01/piao/aa.py', wdir='D:/pythondirectory/Myproject01/piao') PNG (1339, 4884) RGB Traceback (most recent call last): File "<stdin>", line 1, in <module> File "D:\Users\win\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 685, in runfile execfile(filename, namespace) File "D:\Users\win\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 85, in execfile exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace) File "D:/pythondirectory/Myproject01/piao/aa.py", line 10, in <module> im.thumbnall((200,100)) File "D:\Users\win\Anaconda3\lib\site-packages\PIL\Image.py", line 622, in __getattr__ raise AttributeError(name) AttributeError: thumbnall
命令行安装:pip install Pillow
没有别的方法。如果pip没有安装,重装一遍python安装程序,确保pip钩上了
好的,谢谢了,我看了一下我的anaconda好像安装有,我再试试
Sign in to make a reply
克里斯托弗的梦想
谁能告诉我这是怎么回事,我用的anaconda,不知道里面有没有自带pillow,我不知道运行那个界面,然后在那个界面输入sudo easy_install pip,一头雾水,我感觉我上面有pillow这个包,不然调用都会提示错误,可运行出来不是想要的结果怎么办???求助各位了??