installing pillow error: setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

  • Last Update :
  • Techknowledgy :

For Python 2.x use:

sudo apt - get install python - dev

For Python 2.7 use:

sudo apt - get install libffi - dev

For Python 3.x use:

sudo apt - get install python3 - dev

enter:

$ sudo apt - get install python - dev

or

# apt - get install python - dev

Try installing these packages.

sudo apt - get install build - essential autoconf libtool pkg - config python - opengl python - pil python - pyrex python - pyside.qtopengl idle - python2 .7 qt4 - dev - tools qt4 - designer libqtgui4 libqtcore4 libqt4 - xml libqt4 - test libqt4 - script libqt4 - network libqt4 - dbus python - qt4 python - qt4 - gl libgle3 python - dev libssl - dev

sudo easy_install greenlet

sudo easy_install gevent

You need to install these packages:

sudo apt - get install libpq - dev python - dev libxml2 - dev libxslt1 - dev libldap2 - dev libsasl2 - dev libffi - dev

For Python 3.4 use:

sudo apt - get install python3 .4 - dev

For Python 3.5 use:

sudo apt - get install python3 .5 - dev

For Python 3.6 use:

sudo apt - get install python3 .6 - dev

For Python 3.8 use:

sudo apt - get install python3 .8 - dev
1._
$ sudo apt - get install gcc
$ sudo apt - get install python - dateutil python - docutils python - feedparser python - gdata python - jinja2 python - ldap python - libxslt1 python - lxml python - mako python - mock python - openid python - psycopg2 python - psutil python - pybabel python - pychart python - pydot python - pyparsing python - reportlab python - simplejson python - tz python - unittest2 python - vatnumber python - vobject python - webdav python - werkzeug python - xlwt python - yaml python - zsi

OR TRY THIS:

$ sudo apt - get install libxml2 - dev libxslt1 - dev

Suggestion : 2

I've tried installing whatever was suggested, libssl-dev being the most common answer, but I still receive the error:, I've read that spontaneous symmetry breaking is similar to what happens in ferromagnetism, but are they similar mathematically? , Constructing functions involving existential quantifiers: issues of one input being mapped to many outputs , How can I deal with a lawyer who is ignoring the real client in favor of the technical client?

try this

sudo apt - get install libgmp - dev portaudio19 - dev libssl - dev python3 - dev

Might be libssl:

sudo apt - get install libssl - dev

Also try this:

sudo apt - get install portaudio19 - dev

Suggestion : 3

Python – setup script exited with error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1,Installing Pillow error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1,Installing lxml in virtualenv via pip install error: command 'x86_64-linux-gnu-gcc' failed,Python – installing Reportlab (error: command ‘gcc’ failed with exit status 1 )

This error is displayed:

error: command 'x86_64-linux-gnu-gcc'
failed with exit status 1

when attempting the following in a virtualenv:

pip install lxml
pip install pillow
pip install pycrypto
pip install pymongo(fails but still shows in pip freeze)

I am confused by this recommendation however because it is my understanding that using something like:

sudo apt - get install python2 .7 - dev

For example: I tried to do pip install requests[security] in my virtualenv foo. This is the result that the pip-installer gave me.

Failed building wheel for cryptography
Running setup.py bdist_wheel for cffi
Stored in directory: /root/.cache/pip/wheels/99/e7/9a/68b1c8ca6f6f92b5feebd4d9434f50712b84f6a66d1285ea21
Successfully built cffi
Failed to build cryptography
Installing collected packages: cffi, cryptography, pyOpenSSL, ndg-httpsclient, requests
Running setup.py install for cryptography
Complete output from command /opt/foo/django-cms-virtualenv/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-eZaLAG/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-BwgYTp-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/foo/django-cms-virtualenv/include/site/python2.7/cryptography:
running install
running build
running build_py
running egg_info
writing requirements to src/cryptography.egg-info/requires.txt
writing src/cryptography.egg-info/PKG-INFO
writing top-level names to src/cryptography.egg-info/top_level.txt
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing entry points to src/cryptography.egg-info/entry_points.txt
warning: manifest_maker: standard file '-c' not found

reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
running build_ext
building '_Cryptography_cffi_a269d620xd5c405b7' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_a269d620xd5c405b7.c -o build/temp.linux-x86_64-2.7/src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_a269d620xd5c405b7.o
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_a269d620xd5c405b7.c:217:25: fatal error: openssl/aes.h: Datei oder Verzeichnis nicht gefunden
#include <openssl /aes.h>
   ^
   compilation terminated.
   error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Suggestion : 4

 May 10, 2022     linux-mint, pip, python-2.7, virtualenv   

This error is displayed:

error: command 'x86_64-linux-gnu-gcc'
failed with exit status 1

when attempting the following in a virtualenv:

pip install lxml
pip install pillow
pip install pycrypto
pip install pymongo(fails but still shows in pip freeze)

I am confused by this recommendation however because it is my understanding that using something like:

sudo apt - get install python2 .7 - dev

And then I installed libxml2-dev and libxslt1-dev via Synaptic and could accomplish the following:

pip install lxml

I also did this so that the pymongo install didn't have any errors:

pip uninstall pymongo
pip install pymongo # i defined the version i needed ie pip install pymongo == 2.6 .2