News for hackers. Stuff that matters.
Re:Anaconda 5.0 Released by milliams on Friday October 27, 2017 @06:29AM (#15567112)
I do like Anaconda and it's a really great way to easily get Python on the computers of the people I teach. However, I do have some problems with how they mess about with the Python ecosystem. If you read a tutorial on Python modules, it will tell you to `pip install`, create a venv etc.

Anaconda have removed the ensurepip module (part of the standard library since 3.4) which is used during the venv creation to install pip. PEP 453 explicitly recommends that "Even if pip is made available globally by other means, do not remove the ensurepip module in Python 3.4 or later." to ensure that the `venv` module works as expected.

The lack of an `ensurepip` module means that trying to create a venv with `python3 -m venv my_test_venv` gives an error of:

  Error: Command '['/home/milliams/my_test_venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
People say that this is ok since `conda` is better but I don't want to have to teach my students the standard tools for Python module development only to have to say "except if you're using Anaconda...". Especially since the really shouldn't have to know what distribution they are using. It should be an implementation detail.
Re:Anaconda 5.0 Released by fredley on Friday October 27, 2017 @10:42AM (#15568810)
This situation is exacerbated by the fact that, for Windows, Anaconda is the only way to get packages like numpy etc. working without downloading prebuilt wheels. If pip on Windows worked reliably Anaconda would have no need to exist.
Re:Anaconda 5.0 Released by BeetleB on Friday October 27, 2017 @11:21AM (#15569256)
To be honest, I never needed Anaconda to use NumPy/SciPy/matplotlib/pandas on Windows. I get that Anaconda makes it easier for people new to Python. But for seasoned Python folks, there's really no headache.

NumPy (and I think SciPy) used to be standard Windows installs (as in download an exe and install it). Pandas was too, but now you can use pip. The only catch was that you should install 32 bit python instead of 64 (not sure if that's still the case).

Re:Anaconda 5.0 Released by lyricat on Monday October 30, 2017 @03:40AM (#15583568)
Not true. Anaconda/miniconda also provide a convenient way for package control which include binary packages and source code packages

For me, condo is good solution to install necessary dependences with little pain.

Re:Anaconda 5.0 Released by RayDonnelly on Saturday October 28, 2017 @06:22AM (#15574633)
We have put `ensurepip` back in place and uploaded new Python packages for all platforms. `conda update python` should see you right. Thank you for bringing this up.
Re:Anaconda 5.0 Released by milliams on Saturday October 28, 2017 @06:39AM (#15574661)
Thanks Ray, it's very much appreciated!
Re:Anaconda 5.0 Released by profalseidol on Friday October 27, 2017 @10:54AM (#15568966)
glad java doesn't have this problem 99.9%. even if you teach very old java. it would still work today.
Re:Anaconda 5.0 Released by spot on Friday October 27, 2017 @08:36AM (#15567702)
conda is the standard tool. tell your students to use it, not venv. problem solved.
Re:Anaconda 5.0 Released by dschep on Friday October 27, 2017 @09:17AM (#15567964)
> conda is the standard tool.

Since when? I was under the impression it's a data science focused alternative to the standard tools(pip, venv module, eventually pipenv).

Re:Anaconda 5.0 Released by metalliqaz on Friday October 27, 2017 @09:36AM (#15568093)
It's standard within Anaconda. I think the subtext is that if you have the students install Anaconda, they should use Anaconda tools. If you want standard python, then install standard python.
Re:Anaconda 5.0 Released by pwang on Friday October 27, 2017 @05:25PM (#15572351)
Any cloud computing environment focused on data science or machine learning will have Anaconda installed by default (and for good reason).

The sheer amount of complex dependencies and possible errors between build-time configuration and run-time libraries is vast. Anaconda helps people steer clear of a large amount of them, and that is why it's so popular.

Re:Anaconda 5.0 Released by ams6110 on Friday October 27, 2017 @10:53AM (#15568955)
If you're doing/teaching scientific computing with Python, it's widely used, if not "the" standard. Anaconda will almost certainly be available in any current scientific computing environment.