首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > perl python >

装配 Python Imaging Library

2012-10-17 
安装 Python Imaging Libraryhttp://www.pythonware.com/products/pil/The Python Imaging Library (PIL)

安装 Python Imaging Library

http://www.pythonware.com/products/pil/

The Python Imaging Library (PIL) adds image processing capabilities to your Python interpreter. This library supports many file formats, and provides powerful image processing and graphics capabilities.

从源码安装,出错:


……copying PIL\TiffImagePlugin.py -> build\lib.win-amd64-2.7copying PIL\TiffTags.py -> build\lib.win-amd64-2.7copying PIL\WalImageFile.py -> build\lib.win-amd64-2.7copying PIL\WmfImagePlugin.py -> build\lib.win-amd64-2.7copying PIL\XbmImagePlugin.py -> build\lib.win-amd64-2.7copying PIL\XpmImagePlugin.py -> build\lib.win-amd64-2.7copying PIL\XVThumbImagePlugin.py -> build\lib.win-amd64-2.7copying PIL\__init__.py -> build\lib.win-amd64-2.7running build_ext--- using Tcl/Tk libraries at C:\python27\Tcl--- using Tcl/Tk version 8.5building '_imaging' extensionerror: Unable to find vcvarsall.bat


解决办法:


1、首先安装MinGW,在MinGW的安装目录下找到bin的文件夹,找到mingw32-make.exe,复制一份更名为make.exe;

2、把MinGW的路径添加到环境变量path中;

3、打开命令行窗口,在命令行窗口中进入到要安装代码的目录下;

4、输入如下命令就可以安装了。

setup.py install build --compiler=mingw32 1 楼 christen 2011-10-19   Sorry,gcc error withou any details.

热点排行