Closed tanjuntao closed 1 year ago
It may take me a few days to test on an older version of Linux. However, github compiles all the supported pre-compiled binary wheels for Linux when a change is pushed. Can you try selecting "Actions" and then select the completed workflow with a description of "Build Wheels #...". There should be a link to download a "wheels" file on the next page. Find the file that you need (probably gmpy2-2.13-cp36-cp36m-manylinux_2_17_x84_64.manylinux2014_x86_64.whl) and install it using pip.
Thanks for your help! This works for me now!
Probably, this can be closed?
I'm working on CentOS 7.8 and using
yum
to install thegmp
,mpfr
andmpc
libraries. But the latest version ofmpc
library provided byyum
is 1.0.1, which is lower than the required minimum version of 1.0.3, so I have to choose to install these three libraries from source code.I follow the official tutorial and successfully install
gmp-5.1.0
,mpfr-3.1.1
andmpc-1.1.0
in directory/usr/local/lib
(I'm the root user). Then I use the following commandwith no
--prefix
argument to compile the gmpy2 library, and also successfully install it in directory'/usr/local/lib64/python3.6/site-packages/gmpy2-2.1.3-py3.6-linux-x86_64.egg'
.But here is the problem:
the
gmpy2
module can't be imported properly in Python, I have no idea where this problem come from.Hope to receive some advise from your guys.