简体   繁体   中英

Can't locate setup.py file to install PIL

I am following the instructions on the following page, and I am not sure which setup.py file it is referring to where I need to change JPEG_ROOT = libinclude(“/usr/local”) (I am a beginner). Mac OS X, Python 2.7.

Here is the link , and below is an abstract:

Next get PIL and untar it

http://effbot.org/downloads/Imaging-1.1.6.tar.gz tar -zxvf Imaging-1.1.6.tar.gz cd Imaging-1.1.6

If you already have PIL I would recommend running

sudo rm -Rf build

to clean any existing builds, this has caused me loads of errors and gray hairs!

in your setup.py file run find JPEG_ROOT

amend it so it looks as follows

JPEG_ROOT = libinclude(“/usr/local”)

Next move onto the build

sudo python setup.py build

Any help much appreciated.

解压缩归档文件时,位于Imaging-1.1.6的根目录是setup.py。

它是指提取文件根目录中的setup.py

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM