I want to install PIL package on windows, its easy. but decoder jpeg not available. which packages are needed to download and installed befor PIL so it gets work?
相关问题
- How do I apply a perspective transform with more t
- How to delete a certain part of an Image?
- Pillow (PIL) to QImage conversion -> python.exe ha
- How to complete this python function to save in th
- How to save floating-point pixel values in image f
相关文章
- How to write CUSTOM metadata into JPEG with Python
- Read 16-bit PNG image file using Python
- Ubuntu Tkinter installation does not include PyIma
- Converting PIL Image to GTK Pixbuf
- How to define radius for blur with Python Pillow?
- What is the best way to save image metadata alongs
- Determining if a GIF is transparent in Python
- Throwing an exception in C++ in a C callback, poss
Solution that worked for me (assuming you have the tools to compile packages, which depend on your python version, installed):
Download precompiled binaries from http://gnuwin32.sourceforge.net/packages/jpeg.htm (you need the developer files and binaries).
Download PIL sources, open setup.py, and change JPEG_ROOT (line 37):
Run setup.py install.
Copy jpeg62.dll from the jpeglib binaries to your site-packages\PIL directory.
That's it, it should now work.
I found the solution.
one has to use easy_install PIL instead of pip install PIP in Windows.
easy_install finds local installation or installs the libjpeg from the source and connects it to PIL while pip cannot do that.