我只想了解更多关于Python的scikit--学习包,同时在我正在做的在线课程中学习ML。我目前使用的是Cloud9在线ide,就像我使用chromebook一样。
然而,当我试图安装我的ide的scikit学习包时,访问总是被拒绝。我试过下面的代码..。
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的学习包的经验吗?它被提到使用pythonpath,这就是它目前所包含的.
/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python3.4/dist-packages:/usr/local/lib/python3.5/dist-packages如果任何人有任何线索/教程,我可以遵循,以使这个安装,我会非常感谢帮助!
发布于 2017-01-07 21:02:52
这个问题与科学知识无关--学习或巨蟒。您需要在pip命令之前使用sudo,如下所示:
sudo pip install -U scikit-learnhttps://stackoverflow.com/questions/41526474
复制相似问题