PIL: DLL load failed: specified procedure could not be found

前端 未结 9 865
醉酒成梦
醉酒成梦 2020-11-29 07:21

I\'ve been beginning to work with images in Python and I wanted to start using PIL (Pillow). To install it, I ran pip install Pillow. When installing, PIL was n

相关标签:
9条回答
  • 2020-11-29 07:33

    First uninstall existing version

    pip uninstall pillow
    

    Then try installing

    pip install pillow==4.0.0
    
    0 讨论(0)
  • 2020-11-29 07:34

    If you're using Anaconda, try

    conda uninstall pillow and then pip install pillow

    Came across this issue while working on Caffe2 on Windows 10 (Anaconda 4.5) and this worked for me. Here's the github post on this issue.

    0 讨论(0)
  • 2020-11-29 07:41

    I had the same problem with anaconda 5.0.1, using it with caffe on windows 10. i just did

    conda install PIL

    it worked for me.

    0 讨论(0)
  • 2020-11-29 07:42

    Seems like some issue is there with tensorflow 1.12.0 +Python 3.6.0 + win10

    Working fine with conda tensorflow.

    below steps worked for me for pip tensorflow.

    uninstall tensorflow replace your python version with 3.6.1 install latest version of tensorflow(1.13.0)

    For installing Tensorflow follow below link:- https://www.tensorflow.org/install/pip

    0 讨论(0)
  • 2020-11-29 07:48

    There's a problem in Python itself which means binary wheels build using Python 3.6.1 (like Pillow 4.1.0) won't install on Python 3.6.0.

    This has affected a number of Python libraries.

    However, there's the new Pillow 4.1.1 release works around this, so you can now update to Pillow 4.1.1 and use it with both Python 3.6.0 and 3.6.1.

    More info:

    • https://github.com/python-pillow/Pillow/issues/2479
    • https://mail.python.org/pipermail/python-dev/2017-March/147707.html
    • https://bugs.python.org/issue29943
    0 讨论(0)
  • 2020-11-29 07:52

    As in Sean's answer, I had to uninstall (I'm using Anaconda Python 3.6, BTW) with

    conda uninstall pillow
    

    I tried it with PIL, but there was no such package. Uninstalling pillow also meant uninstalling packages that depend on it, in my case "anaconda-navigator" and "scikit-image". After I reinstalled Pillow 4.0.0 with

     conda install pillow=4.0.0
    

    and tested it with

    python -c "from PIL import Image"
    

    which, if successful, you don't see an error message, I reinstalled the packages that were uninstalled along with Pillow 4.1.0.

    conda install anaconda-navigator
    conda install scikit-image
    
    0 讨论(0)
提交回复
热议问题