我正在尝试安装nolearn,这是一种巨蟒机器学习库(基于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我尝试过许多事情,包括安装免费类型以及重新安装matplotlib (都基于另一个stackexchange发布),但不幸的是,它仍然不能工作(上面显示了错误)。
任何帮助都是非常感谢的!
我的配置如下:
发布于 2015-11-09 15:38:10
最后,我很难协调nolearn库及其对最近/当前版本的lasagne和theano (等)的需求,以及可用/兼容于anaconda的版本。我可能已经有了更多的时间来解决这些冲突,但由于时间有限,我刚刚停止使用anaconda (和conda),只使用了常规的python发行版和virtualenv (和virtualenvwrapper),并使其工作得非常快。
发布于 2015-11-06 07:06:50
在使用Anaconda时,通常最好使用conda来安装/更新,而不是使用pip。
您可以尝试使用conda而不是pip:condu update scipy更新pip。
或者更新通过conda安装的所有内容:conda update --all。
您可能需要首先更新Anaconda本身:conda update conda。
如果可以以这种方式安装/更新,那么对requirements.txt中的其他条目(手动/单独运行安装/更新)也尝试同样的方法。
https://stackoverflow.com/questions/33554977
复制相似问题