pip installation of gmpy2

99封情书 提交于 2019-12-08 11:14:54

问题


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?


回答1:


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.




回答2:


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




回答3:


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.



来源:https://stackoverflow.com/questions/14178594/pip-installation-of-gmpy2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!