Thanks for reporting.
I'm a bit confused to the issue. Though I am not familiar with gmpy, it
looks like there are two versions of it available in Ubuntu, gmpy and
gmpy2. While the former doesn't have a python3 package, the latter one
does and this seems to be the maintained version too. That would be
installable through `sudo apt install python3-gmpy2`
(https://packages.ubuntu.com/bionic/python3-gmpy2).
If for some reason the Ubuntu package doesn't fit or you really need to use the
older gmpy version in combination with Python3 i suppose that might be why the
script attempt to install via pip3 instead of apt. Based on the error message:
In file included from src/gmpy.c:251:0:
src/gmpy.h:30:10: fatal error: gmp.h: No such file or directory
#include "gmp.h"
^~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
it looks like it was fetched, but failed to compile while installing. Some
python packages contain C/C++ code to speed up certain parts and looks like
this is one of them. It might be missing some build dependencies, which perhaps
`sudo apt build-dep python-gmpy` (for gmpy1) or `sudo apt build-dep
python-gmpy2` (for gmpy2, though in that case it is probably easier to use the
existing python3-gmpy2 package as described above)
** Changed in: python3-defaults (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1804910
Title:
pip3 cannot install gmpy
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1804910/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs