Problems with modules after installation
Hello everyone,
I have installed Sage on Ubuntu 16.04 from the pre-built tarball binary exactly as described in the installation guide but I am left with some newbie questions.
After browsing the web for several hours, I still cannot manage to get the module graphs up and running in the terminal. First I couldn't even import graphs, but after running
sage --pip install graphs
in terminal I can do
sage: import graphs
without ModuleNotFound error, but the command
sage: G = graphs.EmptyGraph()
leads to
AttributeError: module 'graphs' has no attribute 'EmptyGraph'
Moreover, I'd like to add a new package (sage-drg by Janos Vidali, which I cannot link) but it remains unclear on how to do this. Where do I unpack the zip? How do I let Sage know where to find this package? Is this even possible if I didn't built from source?
There is no need to install any package, as graphs are included in sage itself. You have probably installed https://pypi.org/project/graphs/ which has nothing to do with sage.
Welcome to Ask Sage! Thank you for your question!
I changed @FrédéricC's comment to an answer so you can accept it to mark the question as solved.
This is done by clicking the "checkmark" button by the answer.