Ask Your Question

Best practice: python vs sage-python

asked 2014-02-06 14:50:49 +0200

Bitwise gravatar image

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.

edit retag flag offensive close merge delete


This is not really a question. However, I don't see any reason to uninstall your system's copy of python. Just my 2 pence.

Luca gravatar imageLuca ( 2014-02-06 15:34:33 +0200 )edit

@Luca perhaps community-wiki is better?

Bitwise gravatar imageBitwise ( 2014-02-06 15:38:23 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-02-06 15:36:34 +0200

tmonteil gravatar image

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:

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 !

edit flag offensive delete link more


*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?

Bitwise gravatar imageBitwise ( 2014-02-06 15:40:08 +0200 )edit

I 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.

tmonteil gravatar imagetmonteil ( 2014-02-06 16:36:08 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-02-06 14:50:49 +0200

Seen: 562 times

Last updated: Feb 06 '14