Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ImportError: No module named RealDistribution

I'm fairly new to sage, so this may be a dumb question. On the web interface the following code


runs without issue, however on my local machine, sage throws a not defined error

NameError: name 'RealDistribution' is not defined

I found this strange because it worked fine on the web interface and is almost a line strait from the manual, but I thought that maybe just something wasn't importing or something like that, so I tried the following import statements, but to no avail.

import sage.all
import sage.gsl.probability_distribution.RealDistribution

My questions are: why does it work on the online sagemath but not on my local machine, and what can I do to make it work?