Can't install Pillow in Windows

前端 未结 8 1153
-上瘾入骨i
-上瘾入骨i 2020-12-17 14:20

The installation process asks for zlib and I even setup & cloned it from Github. I\'m new to all of this.

Error message:

C:\\Users\\GThell\\Pillo         


        
相关标签:
8条回答
  • 2020-12-17 15:04

    As per the docs:

    python3 -m pip install --upgrade pip
    python3 -m pip install --upgrade Pillow
    

    You may need to substitute python3 for py, py3 or python, depending on your install.

    Using plain old pip install Pillow doesn't work for me, nor does easy_install Pillow, which complains that it cannot be safely installed by EasyInstall.

    0 讨论(0)
  • 2020-12-17 15:07

    You can try installing Pillow with its Windows Installer package.
    Check https://pypi.org/project/Pillow/#files, Windows Installer packages are at the bottom of the page.
    Worked for me with Python 3.7.

    0 讨论(0)
  • 2020-12-17 15:09

    The URL at bottom of error message says:

    Windows Installation We provide Pillow binaries for Windows compiled for the matrix of supported Pythons in both 32 and 64-bit versions in wheel, egg, and executable installers. These binaries have all of the optional libraries included:

    pip install Pillow

    I would try that, to avoid dependency problems such as you have run into.

    edit: The pillow only support Pillow >= 2.0.0 < 3.5.0 and not 3.6.0

    edit: Hopefully this work, I was not able to actually test on Windows.

    0 讨论(0)
  • 2020-12-17 15:09

    In windows, some packages wont work due to framework issues .same can be download and use it via 3rd party site.

    Unofficial python Binaries

    chose corresponding version download the same.

    and then for eg,

    pip install Downloads\\Pillow.whl
    

    now it will install without error

    0 讨论(0)
  • 2020-12-17 15:11

    I have recently installed Pillow under Cygwin's Python3.6 and needed following packages:

    • gcc-core
    • libjpeg-devel
    • zlib-devel
    • python3-devel
    • python3-setuptools (to run easy-install-3.6)

    I have also installed pip using:

    easy-install-3.6 install pip
    

    Then finally:

    pip3 install pillow
    

    succeeded.

    0 讨论(0)
  • 2020-12-17 15:14

    use:

    easy_install pillow
    

    pip doesn't work somehow

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