Python3 PIL Pillow Ubuntu Install

前端 未结 1 1196
离开以前
离开以前 2021-01-21 13:49

I\'m running Ubuntu 14.04 LTS. I have both Python 2.7 and Python 3.4 installed. I\'m relatively novice when it comes to installing Python Packages in Linux.

I\'m just tr

1条回答
  •  一生所求
    2021-01-21 14:48

    Pillow is packaged as python3-pil in Ubuntu 14.04 (Trusty Tahr). You can install it system-wide with:

    sudo apt-get install python3-pil
    

    You seem to have already installed Pillow with pip earlier, but the default path it pip places it in is not read by the system Python. You can add it to the search path with:

    export PYTHONPATH=/usr/local/lib/python3.4/dist-packages:/usr/local/lib/python3.4/site-packages
    

    Generally you are better off using pip --user to avoid breaking the system installations or to stick with the packaged variants of base Python modules if possible.

    0 讨论(0)
提交回复
热议问题