setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
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
setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
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
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 and ERROR: Failed building wheel for mysqlclient
Based on the two first lines, you're missing the libssl-dev
system package; try apt-get install -y libssl-dev
in your dockerfile.
You'll also need libmysqlclient-dev
, if you haven't added that already.
command 'x86_64-linux-gnu-gcc' failed with exit status 1
I had the same problem.
This one helped me:
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
If you are using python3
, try to replace python-dev
with python3-dev
Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 while Installing PyNaCl
Looks like you are missing CFFI, which also has a couple of dependencies. According to this you need to install a couple of dependencies, probably python-dev and libffi-dev.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 in virtualenv
I installed python2.7-dev
via Synaptic Package Manager in Linux Mint 17.
I could then accomplish the following in virtualenv
:
pip install pillow
pip install pycrypto
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
I'm still confused how this fixes the problem, because I thought virtualenv
was an isolated environment. Any clarification about this appreciated.
Installing Pillow error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
You are missing Python headers. Install python-dev
from your distribution's package manager.
Equally for python 3. Install python3-dev
, example:
sudo apt-get install python3-dev
Related Topics
Python Strings and Integer Concatenation
Post-Install Script with Python Setuptools
Python Nameerror: Name Is Not Defined
Python: Why Is Functools.Partial Necessary
Double Iteration in List Comprehension
What Rules Does Pandas Use to Generate a View VS a Copy
Convert Django Model Object to Dict with All of the Fields Intact
Error After Upgrading Pip: Cannot Import Name 'Main'
How to Test That a Python Function Throws an Exception
Writing a Connection String When Password Contains Special Characters
Calling a Python Script with Input Within a Python Script Using Subprocess
Check If Something Is (Not) in a List in Python
Attributeerror: 'Module' Object Has No Attribute
Python3 --Version Shows "Nameerror: Name 'Python3' Is Not Defined"