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

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

    I had this problem as well with Python 3.6. I just avoided the problem by uninstalling pillow (4.1.0) and then installing an older version of pillow (4.0.0). It seems to run okay with the older version.

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

    This works for me using win10 and py 3.6. Simply uninstall Pillow 4.1.0 pip3 uninstall Pillow Then install Pillow 4.0.0 pip3 install Pillow==4.0.0

    0 讨论(0)
  • 2020-11-29 08:00

    This problem is also fixed by upgrading Python to 3.6.1, per this GitHub discussion.

    The difference is that Pillow 4.1.0 was built with Python 3.6.1 while Pillow 4.0.0 was built with Python 3.6.0.

    Apparently PYTHON36.DLL from Python 3.6.0 is missing functions (PySlice_AdjustIndices and PySlice_Unpack) that are used when building with Python 3.6.1.

    The solution is to upgrade to Python 3.6.1.

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