pip installation of gmpy2
Asked Answered
E

3

0

When I used pip to install gmpy2, I always got the version 1.16, i.e. gmpy instead of gmpy2.

$ pip search gmpy
gmpy                      - GMP or MPIR interface to Python 2.4+ and 3.x
  INSTALLED: 1.16 (latest)

Is there any way to directly install gmpy2 through pip?

Excommunication answered 6/1, 2013 at 2:12 Comment(0)
T
4

I have added gmpy2 to the Python Package Index.

gmpy2 requires GMP 5.0 or later, MPFR 3.1 or later, and MPC 1.0 or later. You may need to compile your own version of those libraries if your operating system doesn't provide the latest versions. Please see Installing GMPY2 for details.

Trot answered 6/1, 2013 at 7:50 Comment(0)
L
1

gmpy2 is now in beta. I think this is why it is not available in pypi.

Lambda answered 6/1, 2013 at 3:59 Comment(1)
Correct. Since gmpy2 also requires very recent versions of MPFR and MPC which frequently aren't yet available on many Linux distributions, manual intervention is frequently required anyway. I will add the next release of gmpy2 to PyPi. (I'm the maintainer of gmpy and gmpy2.)Trot
E
0

No. GMPY2 is not in the Python Package Index, which pip uses. Only version 1.16 is. It seems like their documentation on Google Code might be wrong.

Eupepsia answered 6/1, 2013 at 2:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.