Today’s respondent reported the following errors when testing the PIL package in Python:
Reason: Incompatible library version: _imaging.cpython-37m-darwin.so requires version 14.0.0 or later, but libjpeg.9.dylib provides version 12.0.0
By analyzing the error message, we can see that it is caused by the version incompatibility between libraries, because the PIL library is old and only supports python2.7, which may lead to this problem. So we think about how to solve it.
Solution
First, consider reloading the library. The basic environment of this environment is Python 3.7. Therefore, enter the code on the command line, delete the library first, and then reinstall it.
conda uninstall pillow
conda install pillow
Finally, the test re imports the library successfully and outputs the size of the picture
Successfully solve the problem!
Read More:
- How to Solve Spyder Version incompatible error
- HDF5 library version mismatched error [How to Solve]
- [Mac Pro M1] Python3.9 import cv2 Error: Reason: image not found
- [Solved] Python AssertionError: MMCV==1.1.0 is used but incompatible. Please install mmcv>=1.0.5, <=1.0.5.
- [Solved] Python Image Library fails with message “decoder JPEG not available” – PIL
- Mac Upgrade pip Error OSError: [Errno 13] Permission denied: ‘/Library/Python/2.7/site-packages/pip-9.0.1-py2….
- Nltk Library Download error: [errno: 11004] getaddrinfo failed
- Python asynchronous execution library asyncio
- [Solved] error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows
- VScode: How to Solve Pylance Error (pip Library Files Installed)
- Conda Install Library Error: failed with initial frozen solve. Retrying with flexible solve.
- FileNotFoundError: Could not find module ‘D:\Anaconda3\envs\labe\Library\bin\geos_c.dll‘ [Solved]
- Python netmiko library Cisco telnet switch automation
- [Solved] Pdfplumber Read PDF Sheet Error: AttributeError: function/symbol ‘ARC4_stream_init‘ not found in library
- Pyyaml tutorial introduction to pyyaml library and YML writing and reading
- [Solved] AttributeError: module ‘setuptools._distutils‘ has no attribute ‘version‘
- [Solved] original_keras_version = f.attrs[‘keras_version‘].decode(‘utf8‘)
- [Solved] ParserError: NULL byte detected. This byte cannot be processed in Python‘s native csv library
- [Solved] Tensorflow cuda Error: Could not load dynamic library ‘libcudart.so.11.0‘; dlerror: libcudart.so.11.0: