# how to create an elliptic curve in sage

the following code

```
from sage.schemes.elliptic_curves import EllipticCurve
E = EllipticCurve('y^2 = x^3 + 1', field='GF(8)')
points = E.points()
print(points)
E.plots()
```

always returns the following error : ImportError: cannot import name 'EllipticCurve' from 'sage.schemes.elliptic_curves'

You could try

`from sage.schemes.elliptic_curves.all import EllipticCurve`

.