👻 Check our latest review to choose the best laptop for Machine Learning engineers and Deep learning tasks!
I am trying to install PIL (the Python Imaging Library) using the command:
sudo pip install pil
but I get the following message:
Downloading/unpacking PIL
You are installing a potentially insecure and unverifiable file. Future versions of pip will default to disallowing insecure files.
Downloading PIL-1.1.7.tar.gz (506kB): 506kB downloaded
Running setup.py egg_info for package PIL
WARNING: "" not a valid package name; please use only.-separated package names in setup.py
Installing collected packages: PIL
Running setup.py install for PIL
WARNING: "" not a valid package name; please use only.-separated package names in setup.py
--- using frameworks at /System/Library/Frameworks
building "_imaging" extension
clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -IlibImaging -I/System/Library/Frameworks/Python.framework/Versions/2.7/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _imaging.c -o build/temp.macosx-10.8-intel-2.7/_imaging.o
unable to execute clang: No such file or directory
error: command "clang" failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools;__file__="/private/tmp/pip_build_root/PIL/setup.py";exec(compile(open(__file__).read().replace("
", "
"), __file__, "exec"))" install --record /tmp/pip-AYrxVD-record/install-record.txt --single-version-externally-managed:
WARNING: "" not a valid package name; please use only.-separated package names in setup.py
running install
running build
.
.
.
.
copying PIL/XVThumbImagePlugin.py -> build/lib.macosx-10.8-intel-2.7
running build_ext
--- using frameworks at /System/Library/Frameworks
building "_imaging" extension
creating build/temp.macosx-10.8-intel-2.7
creating build/temp.macosx-10.8-intel-2.7/libImaging
clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -IlibImaging -I/System/Library/Frameworks/Python.framework/Versions/2.7/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _imaging.c -o build/temp.macosx-10.8-intel-2.7/_imaging.o
unable to execute clang: No such file or directory
error: command "clang" failed with exit status 1
----------------------------------------
Cleaning up…
Could you please help me to install PIL
?
👻 Read also: what is the best laptop for engineering students?
We hope this article has helped you to resolve the problem. Apart from How to install PIL with pip on Mac OS?, check other __future__ Python module-related topics.
Want to excel in Python? See our review of the best Python online courses 2023. If you are interested in Data Science, check also how to learn programming in R.
By the way, this material is also available in other languages:
- Italiano How to install PIL with pip on Mac OS?
- Deutsch How to install PIL with pip on Mac OS?
- Français How to install PIL with pip on Mac OS?
- Español How to install PIL with pip on Mac OS?
- Türk How to install PIL with pip on Mac OS?
- Русский How to install PIL with pip on Mac OS?
- Português How to install PIL with pip on Mac OS?
- Polski How to install PIL with pip on Mac OS?
- Nederlandse How to install PIL with pip on Mac OS?
- 中文 How to install PIL with pip on Mac OS?
- 한국어 How to install PIL with pip on Mac OS?
- 日本語 How to install PIL with pip on Mac OS?
- हिन्दी How to install PIL with pip on Mac OS?
Singapore | 2023-03-23
Maybe there are another answers? What How to install PIL with pip on Mac OS? exactly means?. Will get back tomorrow with feedback
Texas | 2023-03-23
Simply put and clear. Thank you for sharing. How to install PIL with pip on Mac OS? and other issues with sep was always my weak point 😁. I am just not quite sure it is the best method
Singapore | 2023-03-23
Maybe there are another answers? What How to install PIL with pip on Mac OS? exactly means?. Will get back tomorrow with feedback