gmpy2的pip安装 [英] pip installation of gmpy2

查看:975
本文介绍了gmpy2的pip安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用pip安装gmpy2时,我总是得到版本1.16,即gmpy而不是gmpy2.

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)

是否可以通过pip直接安装gmpy2?

Is there any way to directly install gmpy2 through pip?

推荐答案

我已将gmpy2添加到 Python包索引.

I have added gmpy2 to the Python Package Index.

gmpy2需要GMP 5.0或更高版本,MPFR 3.1或更高版本以及MPC 1.0或更高版本.如果您的操作系统未提供最新版本,则可能需要编译这些库的自己的版本.有关详细信息,请参见安装GMPY2 .

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.

这篇关于gmpy2的pip安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆