How did you start python? (and I guess why not use sage directly, but that is another question.
Run in a terminal: python3 or ipython3 or jupyter notebook ... then try again. Regards, Jan On Sat, 23 Oct 2021 at 19:55, Dew Debra <mob...@gmail.com> wrote: > I want to run sage scripts using python3 > i installed in Ubuntu 18.04 > through the command > > sudo apt-get install sagemath > > then using the sage module into a file > > from sage.all import * > > but the script was launched only in python2 , but can I run it in > python3? > > > How do I run sage in python3? > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/daa9a26d-e040-4ed7-b3ea-0694e4b542d6n%40googlegroups.com > <https://groups.google.com/d/msgid/sage-support/daa9a26d-e040-4ed7-b3ea-0694e4b542d6n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- .~. /V\ Jan Groenewald /( )\ www.aims.ac.za ^^-^^ -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAAg%3Dp_2Ex9jMGTZW0tK6t-KN-qb7RAFi%3DeNYmzeM4Vuc4%3DMh%3DQ%40mail.gmail.com.