2017-01-07 80 views
0

想了解更多關於pyik的scikit-learn軟件包,同時在我正在學習的在線課程中學習ML。我正在使用Cloud9在線ide,因爲我正在使用chromebook。安裝scikit學習Cloud9的python包

但是,當我嘗試爲我的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 

有誰在安裝sklearn包爲CLOUD9 IDE的經驗嗎?它使用的PYTHONPATH提到的,這就是它目前包含...

/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python3.4/dist-packages:/usr/local/lib/python3.5/dist-packages 

如果任何人有任何線索/教程我可以按照得到這個安裝,我會很感激的幫助!

回答

0

該問題與scikit-learn或python無關。 你需要你的點子命令之前使用sudo,像這樣:

sudo pip install -U scikit-learn 
+0

這麼簡單..卻又如此正確。謝謝你的幫助! – amiAI