Install PIL in Ubuntu 12.04 Python 2.7 and Python 3.2

后端 未结 3 1072
粉色の甜心
粉色の甜心 2020-12-14 20:35

I am, using Ubuntu 12.04 server which by default has two versions of Python: 2.7 and 3.2. When I install PIL using the python setup.py install terminal command,

3条回答
  •  旧时难觅i
    2020-12-14 21:05

    [(I seem to be making a mess of things in the comments, sorry about that, here's a better version)

    The error clearly states that you're missing setuptools for python3. The package python3-setuptools should take care of that (run sudo apt-get install python3-setuptools).

    Then, as you noticed, default PIL doesn't work for python3. The current state of the github master of Pillow does, however. That will install by using python3 setup.py build and sudo python3 setup.py install.

提交回复
热议问题