Python 2.7不会导入枕头/ pygame

时间:2019-01-04 19:53:29

标签: python pip pygame python-imaging-library

两者

from PIL import Image
from pygame import *

返回ImportError: No module named PIL / ImportError: No module named pygame

我都安装了点子,并且在询问时显示:

C:\Users\User>pip show pillow
Name: Pillow
Version: 5.4.0
Summary: Python Imaging Library (Fork)
Home-page: http://python-pillow.org
Author: Alex Clark (Fork Author)
Author-email: aclark@aclark.net
License: Standard PIL License
Location: c:\python27\lib\site-packages
Requires:
Required-by:

C:\Users\User>pip show pygame
Name: pygame
Version: 1.9.4
Summary: Python Game Development
Home-page: https://www.pygame.org
Author: Pete Shinners, Rene Dudfield, Marcus von Appen, Bob Pendleton, others...
Author-email: pygame@seul.org
License: LGPL
Location: c:\python27\lib\site-packages
Requires:
Required-by:

未安装PIL:

C:\Users\User>pip uninstall PIL

跳过未安装的PIL。

使用Python 2.7.13

0 个答案:

没有答案