Due to incorrect name selection, the submodule sympy.core.core imported through the "real" sympy.core , so trying to access sympy.core gets you sympy.core.core , and trying to access sympy.core.numbers gets you an AttributeError .
There are several ways you can get around this. SymPy provides access to the class you need, like sympy.Float , for example:
import sympy do_whatever_with(sympy.Float)
source share