【发布时间】:2017-01-07 20:57:30
【问题描述】:
只是想了解更多关于 Python 的 scikit-learn 包的信息,同时在我正在做的在线课程中学习机器学习。我目前正在使用 Cloud9 在线 ide,因为我正在使用 chromebook。
但是,当我尝试为我的 ide 安装 scikit-learn 包时,访问总是被拒绝。我尝试了以下代码...
pip install -U scikit-learn
而且,我得到了这个回复..
running install_lib
creating /usr/local/lib/python2.7/dist-packages/sklearn
error: could not create '/usr/local/lib/python2.7/dist-packages/sklearn': Permission denied
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_ubuntu/scikit- learn/setup.py';exec(compile(getattr(tokenize, 'open', open) (__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Oo3fnX-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_ubuntu/scikit-learn
有没有人有为 Cloud9 IDE 安装 sklearn 包的经验?它是使用 pythonpath 提到的,这就是它当前包含的内容......
/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python3.4/dist-packages:/usr/local/lib/python3.5/dist-packages
如果有人有任何线索/教程可以让我安装,我将非常感谢您的帮助!
【问题讨论】:
标签: python scikit-learn cloud9-ide cloud9