ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 23 Feb 2011 11:20:52 +0100Will upgrading to Python 3.x on my system break Sage?https://ask.sagemath.org/question/7964/will-upgrading-to-python-3x-on-my-system-break-sage/I want to use Python 3.2 for some other things, but I know that Sage [does not work with Python 3.x](http://www.sagemath.org/doc/faq/faq-usage.html#can-i-use-sage-with-python-3-x). But I also know that Sage comes with its own version of Python. So can I upgrade my system's Python and let Sage use it's own Python 2.x? Will this happen automatically?
----
A side note: The barriers to using Python 3.x in Sage, as listed on the FAQ page, are SciPy and Cython, however recent versions of both now seem to support 3.x:
* [SciPy 0.9.0](http://sourceforge.net/projects/scipy/files/scipy/0.9.0rc5/)
* [Cython 0.14](http://wiki.cython.org/FAQ#WhatPythonversionsdoesCythonsupport.3F)
Tue, 22 Feb 2011 07:54:28 +0100https://ask.sagemath.org/question/7964/will-upgrading-to-python-3x-on-my-system-break-sage/Comment by kcrisman for <p>I want to use Python 3.2 for some other things, but I know that Sage <a href="http://www.sagemath.org/doc/faq/faq-usage.html#can-i-use-sage-with-python-3-x">does not work with Python 3.x</a>. But I also know that Sage comes with its own version of Python. So can I upgrade my system's Python and let Sage use it's own Python 2.x? Will this happen automatically?</p>
<hr/>
<p>A side note: The barriers to using Python 3.x in Sage, as listed on the FAQ page, are SciPy and Cython, however recent versions of both now seem to support 3.x:</p>
<ul>
<li><a href="http://sourceforge.net/projects/scipy/files/scipy/0.9.0rc5/">SciPy 0.9.0</a></li>
<li><a href="http://wiki.cython.org/FAQ#WhatPythonversionsdoesCythonsupport.3F">Cython 0.14</a></li>
</ul>
https://ask.sagemath.org/question/7964/will-upgrading-to-python-3x-on-my-system-break-sage/?comment=22058#post-id-22058As another point, there is a massive amount of code in worksheets and elsewhere that assumes Python 2.x - in particular with the print statement, but presumably also in other less obvious places. So changing to Python 3.x would mean a big change for those people as well. Unless we could make all of Sage compatible with both via the preparser...Tue, 22 Feb 2011 09:52:58 +0100https://ask.sagemath.org/question/7964/will-upgrading-to-python-3x-on-my-system-break-sage/?comment=22058#post-id-22058Comment by William Stein for <p>I want to use Python 3.2 for some other things, but I know that Sage <a href="http://www.sagemath.org/doc/faq/faq-usage.html#can-i-use-sage-with-python-3-x">does not work with Python 3.x</a>. But I also know that Sage comes with its own version of Python. So can I upgrade my system's Python and let Sage use it's own Python 2.x? Will this happen automatically?</p>
<hr/>
<p>A side note: The barriers to using Python 3.x in Sage, as listed on the FAQ page, are SciPy and Cython, however recent versions of both now seem to support 3.x:</p>
<ul>
<li><a href="http://sourceforge.net/projects/scipy/files/scipy/0.9.0rc5/">SciPy 0.9.0</a></li>
<li><a href="http://wiki.cython.org/FAQ#WhatPythonversionsdoesCythonsupport.3F">Cython 0.14</a></li>
</ul>
https://ask.sagemath.org/question/7964/will-upgrading-to-python-3x-on-my-system-break-sage/?comment=22055#post-id-22055We will definitely switch to Python 3.x at some point. It's clearly the future. And you can do "set comprehensions!" Wed, 23 Feb 2011 02:00:46 +0100https://ask.sagemath.org/question/7964/will-upgrading-to-python-3x-on-my-system-break-sage/?comment=22055#post-id-22055Comment by kcrisman for <p>I want to use Python 3.2 for some other things, but I know that Sage <a href="http://www.sagemath.org/doc/faq/faq-usage.html#can-i-use-sage-with-python-3-x">does not work with Python 3.x</a>. But I also know that Sage comes with its own version of Python. So can I upgrade my system's Python and let Sage use it's own Python 2.x? Will this happen automatically?</p>
<hr/>
<p>A side note: The barriers to using Python 3.x in Sage, as listed on the FAQ page, are SciPy and Cython, however recent versions of both now seem to support 3.x:</p>
<ul>
<li><a href="http://sourceforge.net/projects/scipy/files/scipy/0.9.0rc5/">SciPy 0.9.0</a></li>
<li><a href="http://wiki.cython.org/FAQ#WhatPythonversionsdoesCythonsupport.3F">Cython 0.14</a></li>
</ul>
https://ask.sagemath.org/question/7964/will-upgrading-to-python-3x-on-my-system-break-sage/?comment=22053#post-id-22053I have to say, that is definitely cool. Yes, clearly lots of benefits - just a big nightmare to port.Wed, 23 Feb 2011 11:20:52 +0100https://ask.sagemath.org/question/7964/will-upgrading-to-python-3x-on-my-system-break-sage/?comment=22053#post-id-22053Comment by William Stein for <p>I want to use Python 3.2 for some other things, but I know that Sage <a href="http://www.sagemath.org/doc/faq/faq-usage.html#can-i-use-sage-with-python-3-x">does not work with Python 3.x</a>. But I also know that Sage comes with its own version of Python. So can I upgrade my system's Python and let Sage use it's own Python 2.x? Will this happen automatically?</p>
<hr/>
<p>A side note: The barriers to using Python 3.x in Sage, as listed on the FAQ page, are SciPy and Cython, however recent versions of both now seem to support 3.x:</p>
<ul>
<li><a href="http://sourceforge.net/projects/scipy/files/scipy/0.9.0rc5/">SciPy 0.9.0</a></li>
<li><a href="http://wiki.cython.org/FAQ#WhatPythonversionsdoesCythonsupport.3F">Cython 0.14</a></li>
</ul>
https://ask.sagemath.org/question/7964/will-upgrading-to-python-3x-on-my-system-break-sage/?comment=22056#post-id-22056We will definitely switch to Python 3.x at some point. It's clearly the future. And you can do "set comprehensions" like "{a*a for a in range(10)}".Wed, 23 Feb 2011 02:00:44 +0100https://ask.sagemath.org/question/7964/will-upgrading-to-python-3x-on-my-system-break-sage/?comment=22056#post-id-22056Answer by Mike Hansen for <p>I want to use Python 3.2 for some other things, but I know that Sage <a href="http://www.sagemath.org/doc/faq/faq-usage.html#can-i-use-sage-with-python-3-x">does not work with Python 3.x</a>. But I also know that Sage comes with its own version of Python. So can I upgrade my system's Python and let Sage use it's own Python 2.x? Will this happen automatically?</p>
<hr/>
<p>A side note: The barriers to using Python 3.x in Sage, as listed on the FAQ page, are SciPy and Cython, however recent versions of both now seem to support 3.x:</p>
<ul>
<li><a href="http://sourceforge.net/projects/scipy/files/scipy/0.9.0rc5/">SciPy 0.9.0</a></li>
<li><a href="http://wiki.cython.org/FAQ#WhatPythonversionsdoesCythonsupport.3F">Cython 0.14</a></li>
</ul>
https://ask.sagemath.org/question/7964/will-upgrading-to-python-3x-on-my-system-break-sage/?answer=12137#post-id-12137You should be able to upgrade your system Python to 3.x, and Sage should continue to work just fine. You don't need to do anything special regarding Sage.Tue, 22 Feb 2011 09:01:06 +0100https://ask.sagemath.org/question/7964/will-upgrading-to-python-3x-on-my-system-break-sage/?answer=12137#post-id-12137