我想在sympy中使用jacobDN函数,所以我下载它并且
python setup.py成功安装它.
>>> from sympy.mpmath import *
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named mpmath
>>>
从sympy导入的所有东西都是成功的:
>>> from sympy import *
>>>
然后我单独安装了mpmath,然后我可以使用mpmath的ellipfun.然而,显示了令人讨厌的mpf:
>>> from mpmath import *
>>> ellipfun('dn',0.5,0.5)
mpf('0.94297242577738571')
>>>
问题是如何在sympy.mpmath下使用ellipfun?如何检查我的安装漏洞?
以上解决方案是最好的!如果不能,我怎么能像使用普通函数一样在mpmath中使用ellipfun?
成功安装症状的证据
-> ~$pip show sympy
---
Name: sympy
Version: 0.7.7.dev
Location: /usr/local/lib/python2.7/dist-packages/sympy-0.7.7.dev-py2.7.egg
Requires: mpmath
-> ~$pip install --upgrade sympy
Requirement already up-to-date: sympy in /usr/local/lib/python2.7/dist-packages/sympy-0.7.7.dev-py2.7.egg
Requirement already up-to-date: mpmath>=0.19 in /usr/local/lib/python2.7/dist-packages/mpmath-0.19-py2.7.egg (from sympy)
Cleaning up...