ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 06 Feb 2014 09:36:08 -0600Best practice: python vs sage-pythonhttp://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/Like some other users, I installed sage on a system that already has python, so I end up with two copies of python.
What is the best practice in this case?
It makes sense to restrict myself to consistently use only one of these (by setting the environment variables properly). Probably the Sage python would be better to use, so that installed packages are available in Sage.
Should I remove the original python I had installed, or just leave it be?
I would be happy to hear how other people have this set up and what are other considerations I should be aware of.
Thu, 06 Feb 2014 07:50:49 -0600http://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/Comment by Luca for <p>Like some other users, I installed sage on a system that already has python, so I end up with two copies of python.</p>
<p>What is the best practice in this case?</p>
<p>It makes sense to restrict myself to consistently use only one of these (by setting the environment variables properly). Probably the Sage python would be better to use, so that installed packages are available in Sage.</p>
<p>Should I remove the original python I had installed, or just leave it be?</p>
<p>I would be happy to hear how other people have this set up and what are other considerations I should be aware of.</p>
http://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/?comment=16314#post-id-16314This is not really a question. However, I don't see any reason to uninstall your system's copy of python. Just my 2 pence.Thu, 06 Feb 2014 08:34:33 -0600http://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/?comment=16314#post-id-16314Comment by Bitwise for <p>Like some other users, I installed sage on a system that already has python, so I end up with two copies of python.</p>
<p>What is the best practice in this case?</p>
<p>It makes sense to restrict myself to consistently use only one of these (by setting the environment variables properly). Probably the Sage python would be better to use, so that installed packages are available in Sage.</p>
<p>Should I remove the original python I had installed, or just leave it be?</p>
<p>I would be happy to hear how other people have this set up and what are other considerations I should be aware of.</p>
http://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/?comment=16313#post-id-16313@Luca perhaps community-wiki is better?Thu, 06 Feb 2014 08:38:23 -0600http://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/?comment=16313#post-id-16313Answer by tmonteil for <p>Like some other users, I installed sage on a system that already has python, so I end up with two copies of python.</p>
<p>What is the best practice in this case?</p>
<p>It makes sense to restrict myself to consistently use only one of these (by setting the environment variables properly). Probably the Sage python would be better to use, so that installed packages are available in Sage.</p>
<p>Should I remove the original python I had installed, or just leave it be?</p>
<p>I would be happy to hear how other people have this set up and what are other considerations I should be aware of.</p>
http://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/?answer=16015#post-id-16015It really depends on your daily python uses. According to packages, it is not so clear: your distro may propose a lots of packages, for example in Debian:
apt-cache search --names-only python | grep ^python | wc
Leads to 1846 available packages, which you can install very easily. Moreover, some general-interest software rely on python and are integrated/tested with the one provided by your distro (and may depend on python package that will be hard to remove with the package manager).
As for me, i use Sage's python for mathematical related stuff, and distro-python for other (e.g. sysadmin) uses.
The best long-term solution would be to have Sage being able to use the python that is shipped by the distro, not the converse.
By the way, if you plan to remove your distro's python and let your system use Sage's everywhere, I will be curious to hear about your experience !
Thu, 06 Feb 2014 08:36:34 -0600http://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/?answer=16015#post-id-16015Comment by Bitwise for <p>It really depends on your daily python uses. According to packages, it is not so clear: your distro may propose a lots of packages, for example in Debian:</p>
<pre><code>apt-cache search --names-only python | grep ^python | wc
</code></pre>
<p>Leads to 1846 available packages, which you can install very easily. Moreover, some general-interest software rely on python and are integrated/tested with the one provided by your distro (and may depend on python package that will be hard to remove with the package manager).</p>
<p>As for me, i use Sage's python for mathematical related stuff, and distro-python for other (e.g. sysadmin) uses.</p>
<p>The best long-term solution would be to have Sage being able to use the python that is shipped by the distro, not the converse.</p>
<p>By the way, if you plan to remove your distro's python and let your system use Sage's everywhere, I will be curious to hear about your experience !</p>
http://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/?comment=16312#post-id-16312*The best long-term solution would be to have Sage being able to use the python that is shipped by the distro* - is that currently possible?Thu, 06 Feb 2014 08:40:08 -0600http://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/?comment=16312#post-id-16312Comment by tmonteil for <p>It really depends on your daily python uses. According to packages, it is not so clear: your distro may propose a lots of packages, for example in Debian:</p>
<pre><code>apt-cache search --names-only python | grep ^python | wc
</code></pre>
<p>Leads to 1846 available packages, which you can install very easily. Moreover, some general-interest software rely on python and are integrated/tested with the one provided by your distro (and may depend on python package that will be hard to remove with the package manager).</p>
<p>As for me, i use Sage's python for mathematical related stuff, and distro-python for other (e.g. sysadmin) uses.</p>
<p>The best long-term solution would be to have Sage being able to use the python that is shipped by the distro, not the converse.</p>
<p>By the way, if you plan to remove your distro's python and let your system use Sage's everywhere, I will be curious to hear about your experience !</p>
http://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/?comment=16311#post-id-16311I don't think so. There are currently some attempts to make Sage being able to use the softwares that come from the distro if they exist instead of providing everything, but this is not ready yet.Thu, 06 Feb 2014 09:36:08 -0600http://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/?comment=16311#post-id-16311