Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed building wheel for gmpy2 #18

Open
M0dred opened this issue Nov 22, 2019 · 2 comments
Open

Failed building wheel for gmpy2 #18

M0dred opened this issue Nov 22, 2019 · 2 comments

Comments

@M0dred
Copy link

M0dred commented Nov 22, 2019

Failed building wheel for gmpy2
Running setup.py clean for gmpy2
Failed to build gmpy2
Installing collected packages: gmpy2, robot-detect
Running setup.py install for gmpy2 ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-kh5vvxll/gmpy2/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-record-5kh81p28/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'gmpy2' extension
creating build
creating build/temp.linux-i686-3.7
creating build/temp.linux-i686-3.7/src
i686-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DWITHMPFR -DWITHMPC -I/usr/include/python3.7m -c src/gmpy2.c -o build/temp.linux-i686-3.7/src/gmpy2.o
In file included from src/gmpy2.c:426:
src/gmpy.h:252:12: fatal error: mpfr.h: No such file or directory
252 | # include "mpfr.h"
| ^~~~~~~~
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-kh5vvxll/gmpy2/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-record-5kh81p28/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-kh5vvxll/gmpy2/

@cy1337
Copy link

cy1337 commented Apr 7, 2020

Please see if the solution from this thread works for you: https://stackoverflow.com/a/50554366

@Reelix
Copy link

Reelix commented Feb 16, 2024

I had the same error on an aarch64 based system.

sudo apt install libmpc-dev

Fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants