【发布时间】:2015-11-05 21:18:57
【问题描述】:
我正在尝试安装 nolearn,这是一个 Python 机器学习库(基于 theano 和 lasagne),但收到一个异常错误(注意:该命令是安装 nolearn 作为安装文档的第一步):
命令:
sudo pip install -r https://raw.githubusercontent.com/dnouri/nolearn/master/requirements.txt
输出:
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
我已经尝试了很多方法,包括安装 freetype 以及重新安装 matplotlib(均基于另一个 stackexchange 帖子),但不幸的是它仍然无法正常工作(显示了上面的错误)。
感谢任何帮助!
我的配置如下:
- 在 MAC OSX (Yosemite) 上运行
- 在 ANACONDA 环境中运行
- 使用 conda 作为环境管理器
【问题讨论】:
-
Scipy 由于某种原因未能更新。请重新运行添加到
pip--logoption 可能它会阐明这个问题。
标签: python matplotlib theano lasagne nolearn