Sage only works with python2, but I'm running python3 on my system in a virtual environment. Whenever I try to start the sage REPL, it fails saying module "sage" not found. When I open python2 directly and import sage, it works. So it seems like sage is trying to use python3 and failing. It's probably using my PATH env variable, but I don't want to change this every time I start up the REPL. How can I tell it to use a specific version of python/ipython?
You could run the Sage REPL from the Sage shell (run sage -sh
and start the Sage REPL from there). Then it would use Sage's Python.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.