Ask Your Question

schnip's profile - activity

2021-02-03 14:05:09 +0200 received badge  Student (source)
2021-02-03 14:04:46 +0200 received badge  Popular Question (source)
2015-07-17 17:42:38 +0200 commented question ImportError: No module named RealDistribution

Command line. I didn't think about doing it in notebook, and so I just went and tested that and it worked, but running it from the command line would be preferable.

2015-07-17 17:32:33 +0200 commented question ImportError: No module named RealDistribution

I had the code saved in a file and then ran the file with

sage NEES.sagews

For sage version, I have the current one off of the apt repos, which appears to be 6.7. My OS is a 64-bit Linux Mint 17.

2015-07-17 17:25:43 +0200 asked a question 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?