You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Anaconda and make it primary "quick install" recommendation #7
I agree that Anaconda is the best for everything EXCEPT Linux for people who have root access.
While packages installed from a package manager are generally not the latest release (e.g. they are usually pretty recent, e.g. my Ubuntu uses ipython 0.12), they are tested, stable, they update automatically and they are in the path automatically (a source of confusion for Anaconda that I observed yesterday).
Also, this is most likely a long-term solution. For Macs, 2 years ago we recommended macports, one year ago EPD, now Anaconda. Some people have 3+ python version on their system, because we told them so. We hope Anaconda stays open and current, but there is no guarantee that Continuum keeps it current and free forever; in contrast, Linux package managers where out there before python and could well outlive python in the future.
Also, I see some value in using the system python (and if Macs and Windows came wit ha reasonable system python I would advocate that, too), because that means that other scripts, tools and programs will also find an up-to-date system python.
So, I think
Anaconda for everybody except Linux with root / package manager for linux root
I would say we should put package managers for people with Linux root as a close second, but not actually equivalent to the first option of Anaconda for people that just want to run scientific Python as quickly as possible with the least hassle. The problem is that to get up and running with package managers there is a growing list of useful packages that you need to know about and install. Of course that isn't a problem, but it's a bit more hassle than just download a file, bash , set path.
I also think it's a very bad idea to touch the system python as root, especially as a beginner. I talked to Terry yesterday and he had a horror story of completely munging his mac system python. Even though many useful things are available as distro packages, not all of them are (e.g. astropy), so very soon users need to start installing packages with sudo pip install ... Not infrequently the setup.py files can specify dependencies, for instance if you do --upgrade on some packages it will try to upgrade your numpy! It's only a matter of time before something in the system gets screwed up. So then you need to launch into teaching people how to properly use virtualenv, or --user (which has other problems).
So what about "If you really know what you are doing, package managers are a good option".
I am not convinced that those potential problems are a show-stopper.
Your package manager will keep numpy reasonably up to date so that you
will (in all reasonable cases) already have that dependency satisfied.
For packages managed by your package manager you never need to run --upgrade (I have certainly never used pip --upgrade on anything).
However, I am not feeling so strongly about this that I could not live
with Anaconda as option 1 for everybody, if that's what you prefer.
On 04/11/2013 09:29 AM, Tom Aldcroft wrote:
I would say we should put package managers for people with Linux root
as a close second, but not actually equivalent to the first option of
Anaconda for people that just want to run scientific Python as quickly
as possible with the least hassle. The problem is that to get up and
running with package managers there is a growing list of useful
packages that you need to know about and install. Of course that isn't
a problem, but it's a bit more hassle than just download a file, bash
, set path.
I also think it's a very bad idea to touch the system python as root,
especially as a beginner. I talked to Terry yesterday and he had a
horror story of completely munging his mac system python. Even though
many useful things are available as distro packages, not all of them
are (e.g. astropy), so very soon users need to start installing
packages with |sudo pip install ..|. Not infrequently the setup.py
files can specify dependencies, for instance if you do |--upgrade| on
some packages it will try to upgrade your numpy! It's only a matter of
time before something in the system gets screwed up. So then you need
to launch into teaching people how to properly use virtualenv, or
|--user| (which has other problems).
So what about "If you really know what you are doing, package managers
are a good option".
—
Reply to this email directly or view it on GitHub #7 (comment).
If you have astropy 0.2 (by pip) and numpy 1.6.2 (package manager) and want to upgrade to astropy 0.2.1, the official recommended way is pip install --upgrade astropy. But pip will notice that numpy is an astropy dependency and discover that numpy 1.7 is available. By default pip will upgrade all dependencies (I think this is a terrible idea but that's what it currently does). So pip will happily do a source install of numpy 1.7 over your package-manager numpy 1.6.2 and that's where the fun occurs.
(I haven't checked this pip upgrade behavior recently, I know it did do that).
I know you know all this, but I'll reply to this anyway, so other people
can find it later:
I think |pip install -U --no-deps should make sure that dependencies
remain untouched. (And I agree that --no-deps would make a good default
instead of the way pip does is now).
|
|
If you have astropy 0.2 (by pip) and numpy 1.6.2 (package manager) and
want to upgrade to astropy 0.2.1, the official recommended way is |pip
install --upgrade astropy|. But |pip| will notice that numpy is an
astropy dependency and discover that numpy 1.7 is available. By
default |pip| will upgrade all dependencies (I think this is a
terrible idea but that's what it currently does). So pip will happily
do a source install of numpy 1.7 over your package-manager numpy 1.6.2
and that's where the fun occurs.
(I haven't checked this pip upgrade behavior recently, I know it /did/
do that).
—
Reply to this email directly or view it on GitHub #7 (comment).
Ah right, I see. Well, I'm all for Anaconda being the primary 'fast' way, and package managers be more for advanced users. I also vote that the big table of installation methods be moved to a 'details' section, or even removed as it gives too much choice. EPD, EPD Free, and Homebrew can be removed IMHO. Anaconda CE should be renamed to Anaconda. RPM/APT should be renamed to be more explicit I think.
Just as a note:
This behaviour of pip is considered a bug pypa/pip#304
that's still open, but might be fixed in future versions of pip.
On 04/11/2013 11:35 AM, Thomas Robitaille wrote:
Ah right, I see. Well, I'm all for Anaconda being the primary 'fast'
way, and package managers be more for advanced users. I also vote that
the big table of installation methods be moved to a 'details' section,
or even removed as it gives too much choice. EPD, EPD Free, and
Homebrew can be removed IMHO. Anaconda CE should be renamed to
Anaconda. RPM/APT should be renamed to be more explicit I think.
—
Reply to this email directly or view it on GitHub #7 (comment).
I reworked this section.
Anaconda is now on the top in big letters and I removed most of the other options. For people who really want to know there is always google.
I also changed the secondary package install from asciitable, pyfits, ... to astropy.
That leaves some part of the tutorial dangling in the air because they still depend on asciitable, pyfits, ... etc.
In reality they are already superceeded by the new astropy tutorials, so those chapter need to be removed or rewritten some time soon, but that is another issue.
@hamogu - thanks for doing the work on this, it's mostly in the right direction. But I think some of the changes need to be discussed, particularly removing most of the options and the main single table. For such major changes it would be best to bring it as a pull request that we can discuss and preview before pushing to the live site. A pull request review would also allow catching some typos in the new version.
I've backed out these changes from the live site by just checking out the python4astronomers.github.com repo and doing git reset --hard ec65cd9, and force pushing.
I think we can do something similar to revert the python4astronomers source and re-issue your updates as a pull request, but it's best to wait until my head is more fresh. And maybe @astrofrog will have a better idea.
5c8f1b6 - merges # 5 (minor changes to
Sherpa explanations) - This pull request was opened 11 month ago after
the workshop session and nobody ever bothered to comment on it. I think
it was fine, so I finally merged it.
49d488c - removes many of the options
(the part you disagree).
0cf715b - keeps the main table, keeps
all the options, no reorganisation, it just changes EPD -> Anaconda in
the "For the very impatient section"
Thus, I suggest that you fetch those changes and revert to whatever you
think is suitable.
You started a discussion of this about a month ago. I think we agreed, that Anaconda was going to be the first option. We put (and I think we agreed here as well) package managers as a close second.
Nobody advocated ActiveState, EPD, etc.
Instead @astrofrog suggested (about two weeks ago) to remove most of the options to avoid confusion and there was no opposition to that statement.
I looked at it and I agree that it could be clearer. Since Anaconda is just a simple download, we can make that much shorter (95% of all people who are going to learn a programming language will be able to download Anaconda and start the installer using the instructions on the Anaconda website).
Reading over our old comments (if I understand them correctly) I gather that package managers only come second and we think of them as the solution for advanced users only - thus they need less detailed instructions.
For the record: I agree that EPD, EPD Free, and Homebrew can be removed.
Also, I think Active State can be removed and we should keep: Anaconda, STSCI Python (because of pyraf), Package managers (Macports for Mac and RPM/APT for GNU/Linux).
@hamogu - the immediate issue is just making a major change to the core material with no review. I think we should agree on the actual updates (not just concept-level discussions) via PR before pushing. I'll try to set up a PR today based on your commits.
Activity
astrofrog commentedon Apr 11, 2013
Agreed. I have had issues on OpenSuse, but I found an easy workaround so we can always add that. It's still the easiest way even with that workaround.
I think our number 2 recommendation should be package managers for people who have root access to their machines and know what they are doing.
hamogu commentedon Apr 11, 2013
I agree that Anaconda is the best for everything EXCEPT Linux for people who have root access.
While packages installed from a package manager are generally not the latest release (e.g. they are usually pretty recent, e.g. my Ubuntu uses ipython 0.12), they are tested, stable, they update automatically and they are in the path automatically (a source of confusion for Anaconda that I observed yesterday).
Also, this is most likely a long-term solution. For Macs, 2 years ago we recommended macports, one year ago EPD, now Anaconda. Some people have 3+ python version on their system, because we told them so. We hope Anaconda stays open and current, but there is no guarantee that Continuum keeps it current and free forever; in contrast, Linux package managers where out there before python and could well outlive python in the future.
Also, I see some value in using the system python (and if Macs and Windows came wit ha reasonable system python I would advocate that, too), because that means that other scripts, tools and programs will also find an up-to-date system python.
So, I think
taldcroft commentedon Apr 11, 2013
I would say we should put package managers for people with Linux root as a close second, but not actually equivalent to the first option of Anaconda for people that just want to run scientific Python as quickly as possible with the least hassle. The problem is that to get up and running with package managers there is a growing list of useful packages that you need to know about and install. Of course that isn't a problem, but it's a bit more hassle than just download a file, bash , set path.
I also think it's a very bad idea to touch the system python as root, especially as a beginner. I talked to Terry yesterday and he had a horror story of completely munging his mac system python. Even though many useful things are available as distro packages, not all of them are (e.g. astropy), so very soon users need to start installing packages with
sudo pip install ... Not infrequently the setup.py files can specify dependencies, for instance if you do--upgradeon some packages it will try to upgrade your numpy! It's only a matter of time before something in the system gets screwed up. So then you need to launch into teaching people how to properly use virtualenv, or--user(which has other problems).So what about "If you really know what you are doing, package managers are a good option".
astrofrog commentedon Apr 11, 2013
Right, I agree - Anaconda for beginners or people who want to get set up fast, and package managers as a 'better but advanced' option.
hamogu commentedon Apr 11, 2013
I am not convinced that those potential problems are a show-stopper.
Your package manager will keep numpy reasonably up to date so that you
will (in all reasonable cases) already have that dependency satisfied.
For packages managed by your package manager you never need to run
--upgrade(I have certainly never usedpip --upgradeon anything).However, I am not feeling so strongly about this that I could not live
with Anaconda as option 1 for everybody, if that's what you prefer.
On 04/11/2013 09:29 AM, Tom Aldcroft wrote:
taldcroft commentedon Apr 11, 2013
If you have astropy 0.2 (by pip) and numpy 1.6.2 (package manager) and want to upgrade to astropy 0.2.1, the official recommended way is
pip install --upgrade astropy. Butpipwill notice that numpy is an astropy dependency and discover that numpy 1.7 is available. By defaultpipwill upgrade all dependencies (I think this is a terrible idea but that's what it currently does). So pip will happily do a source install of numpy 1.7 over your package-manager numpy 1.6.2 and that's where the fun occurs.(I haven't checked this pip upgrade behavior recently, I know it did do that).
astrofrog commentedon Apr 11, 2013
I'm pretty sure pip still does that. Is that any different from using pip with anaconda though?
taldcroft commentedon Apr 11, 2013
No, but at least with Anaconda you aren't messing up your system python.
hamogu commentedon Apr 11, 2013
I know you know all this, but I'll reply to this anyway, so other people
can find it later:
I think
|pip install -U --no-depsshould make sure that dependenciesremain untouched. (And I agree that --no-deps would make a good default
instead of the way pip does is now).
|
|
astrofrog commentedon Apr 11, 2013
Ah right, I see. Well, I'm all for Anaconda being the primary 'fast' way, and package managers be more for advanced users. I also vote that the big table of installation methods be moved to a 'details' section, or even removed as it gives too much choice. EPD, EPD Free, and Homebrew can be removed IMHO. Anaconda CE should be renamed to Anaconda. RPM/APT should be renamed to be more explicit I think.
hamogu commentedon Apr 11, 2013
Just as a note:
This behaviour of
pipis considered a bugpypa/pip#304
that's still open, but might be fixed in future versions of pip.
On 04/11/2013 11:35 AM, Thomas Robitaille wrote:
hamogu commentedon May 2, 2013
I reworked this section.
Anaconda is now on the top in big letters and I removed most of the other options. For people who really want to know there is always google.
I also changed the secondary package install from
asciitable, pyfits, ...toastropy.That leaves some part of the tutorial dangling in the air because they still depend on asciitable, pyfits, ... etc.
In reality they are already superceeded by the new astropy tutorials, so those chapter need to be removed or rewritten some time soon, but that is another issue.
taldcroft commentedon May 2, 2013
@hamogu - thanks for doing the work on this, it's mostly in the right direction. But I think some of the changes need to be discussed, particularly removing most of the options and the main single table. For such major changes it would be best to bring it as a pull request that we can discuss and preview before pushing to the live site. A pull request review would also allow catching some typos in the new version.
I've backed out these changes from the live site by just checking out the python4astronomers.github.com repo and doing
git reset --hard ec65cd9, and force pushing.I think we can do something similar to revert the python4astronomers source and re-issue your updates as a pull request, but it's best to wait until my head is more fresh. And maybe @astrofrog will have a better idea.
hamogu commentedon May 2, 2013
@taldcroft
Also, if you check out githubforastronomers and look at the diffs, you
will see that there are three commits
https://github.com/python4astronomers/python4astronomers/commits/master
5c8f1b6 - merges # 5 (minor changes to
Sherpa explanations) - This pull request was opened 11 month ago after
the workshop session and nobody ever bothered to comment on it. I think
it was fine, so I finally merged it.
49d488c - removes many of the options
(the part you disagree).
0cf715b - keeps the main table, keeps
all the options, no reorganisation, it just changes EPD -> Anaconda in
the "For the very impatient section"
Thus, I suggest that you fetch those changes and revert to whatever you
think is suitable.
hamogu commentedon May 2, 2013
@taldcroft
You started a discussion of this about a month ago. I think we agreed, that Anaconda was going to be the first option. We put (and I think we agreed here as well) package managers as a close second.
Nobody advocated ActiveState, EPD, etc.
Instead @astrofrog suggested (about two weeks ago) to remove most of the options to avoid confusion and there was no opposition to that statement.
I looked at it and I agree that it could be clearer. Since Anaconda is just a simple download, we can make that much shorter (95% of all people who are going to learn a programming language will be able to download Anaconda and start the installer using the instructions on the Anaconda website).
Reading over our old comments (if I understand them correctly) I gather that package managers only come second and we think of them as the solution for advanced users only - thus they need less detailed instructions.
hamogu commentedon May 2, 2013
For the record: I agree that EPD, EPD Free, and Homebrew can be removed.
Also, I think Active State can be removed and we should keep: Anaconda, STSCI Python (because of pyraf), Package managers (Macports for Mac and RPM/APT for GNU/Linux).
taldcroft commentedon May 2, 2013
@hamogu - the immediate issue is just making a major change to the core material with no review. I think we should agree on the actual updates (not just concept-level discussions) via PR before pushing. I'll try to set up a PR today based on your commits.