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

前端 未结 9 905
醉酒成梦
醉酒成梦 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: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
    

提交回复
热议问题