Undefined: PyUnicodeUCS4_AsLatin1String when installing Pillow for local Python
I used pip to install Pillow. He showed a successful installation of the pillow. But when in Python (v2.7.8) I entered from PIL import Image
, I got this error:
ImportError: /home/local/python2/lib/python2.7/site-packages/PIL/PIL/_imaging.so: undefined symbol: PyUnicodeUCS4_AsLatin1String
The problem is that I have a local installation of python v2.7.8 which is for UCS2 from maxunicode
: 65535. But the PIL library was built and installed on the system default Python 2.7.6 which is UCS4. I suspect pip called python by default, v2.7.6.
- How can I let pip use my local python v2.7.8 to install Pillow instead of using the default python?
- How to create a pillow made for UCS2 instead of UCS4?
- Do I need to install a different pip for my local python v2.7.8? The current pip is in / usr / bin / for system python.
Thank you so much!
+3
source to share
1 answer
If you are using windows machine try downloading binaries here download python libraries
This is where you can tell which version of python you are trying to install.
0
source to share