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.Thu, 06 Feb 2014 16:36:08 +0100Best practice: python vs sage-pythonhttps://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 14:50:49 +0100https://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/Comment 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>
https://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 15:38:23 +0100https://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/?comment=16313#post-id-16313Comment 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>
https://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 15:34:33 +0100https://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/?comment=16314#post-id-16314Answer 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>
https://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 15:36:34 +0100https://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/?answer=16015#post-id-16015Comment 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>
https://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 16:36:08 +0100https://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/?comment=16311#post-id-16311Comment 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>
https://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 15:40:08 +0100https://ask.sagemath.org/question/11004/best-practice-python-vs-sage-python/?comment=16312#post-id-16312