Ask Your Question
1

Best practice: python vs sage-python

asked 11 years ago

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.

Preview: (hide)

Comments

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 ( 11 years ago )

@Luca perhaps community-wiki is better?

Bitwise gravatar imageBitwise ( 11 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 11 years ago

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 !

Preview: (hide)
link

Comments

*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 ( 11 years ago )
1

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 ( 11 years ago )

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

Stats

Asked: 11 years ago

Seen: 637 times

Last updated: Feb 06 '14