为 Cloud9 安装 scikit learn python 包
Installing scikit learn python package for Cloud9
只是想了解有关 Python 的 scikit-learn 包的更多信息,同时在我正在学习的在线课程中学习 ML。我目前正在在线使用 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 安装 sklearn 包的经验IDE?提到使用 pythonpath,这是它当前包含的内容...
/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python3.4/dist-packages:/usr/local/lib/python3.5/dist-packages
如果任何人有任何线索/教程可以帮助我安装它,我将不胜感激!
该问题与 scikit-learn 或 python 无关。
您需要在 pip 命令之前使用 sudo,如下所示:
sudo pip install -U scikit-learn
只是想了解有关 Python 的 scikit-learn 包的更多信息,同时在我正在学习的在线课程中学习 ML。我目前正在在线使用 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 安装 sklearn 包的经验IDE?提到使用 pythonpath,这是它当前包含的内容...
/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python3.4/dist-packages:/usr/local/lib/python3.5/dist-packages
如果任何人有任何线索/教程可以帮助我安装它,我将不胜感激!
该问题与 scikit-learn 或 python 无关。 您需要在 pip 命令之前使用 sudo,如下所示:
sudo pip install -U scikit-learn