Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
pip install pyodbc failing: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 #276
Please first make sure you have looked at:
To diagnose, we usually need to know the following, including version numbers. On Windows, be
pip install pyodbc --user
Failed building wheel for pyodbc
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-YtLrrj/pyodbc/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-CRLrEJ-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-YtLrrj/pyodbc/
I already have
And I'm trying to install the latest
Let me know if I need to install any other dependencies.
Anyway, I figured out the issue. I had to install
In case anybody runs into this issue again. Please ensure you've installed these:
FYI: Python 2.x users, will need
I'm see the same issue and both python3-dev and unixodbc-dev are installed.
Strange. I exactly had same issue.
But after installing
Can you make sure you have all these dev packages installed on your system? Not sure if this works, but these include pretty much all the dependencies usually required for python.
I have the same issue in Visual Studio Code on Mac OSX while trying to deploy a timer trigger function to Azure Functions. The function works perfectly while executing within VSC, but the deployment fails with the same 'unable to execute gcc' error. I found another issue talking about that, where I've asked for help too, but if anyone watching this issue can help me, I'd be very grateful!