pythonmatplotlibtheanolasagnenolearn

Installing nolearn (python machine learning) results in error


I am attempting to install nolearn, a python machine learning library (based upon theano and lasagne), and am receiving an unusual error (note: the command is the first step in installing nolearn as install docs):

COMMAND:

sudo pip install -r https://raw.githubusercontent.com/dnouri/nolearn/master/requirements.txt

OUTPUT:

Command "{user-directory}/miniconda3/envs/condatest/bin/python3 -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-_ox1_tc0/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ms2zduwl-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-_ox1_tc0/scipy

I have tried a number of things, including installing freetype as well as reinstalling matplotlib (both based upon another stackexchange posting) but unfortunately it still does not work (error above is shown).

Any assistance is appreciated!

My configuration is as follows:


Solution

  • I ended up having difficulty reconciling the nolearn library and its requirements for recent/current versions of lasagne and theano (etc) and the versions available / compatible with anaconda. I may have been able to resolve these conflicts given more time, but being time constrained, I just stopped using anaconda (and conda) and just used the regular python distribution and virtualenv (and virtualenvwrapper) and got it all working very quickly.