python - 在 ubuntu 上安装 scikit-learn

标签 python machine-learning ubuntu-14.04

我在 ubuntu 上安装 scikit-learn 时遇到问题。有人能帮我吗。我正在尝试以下操作:

>>> sudo apt-get install build-essential python-dev python-numpy python-setuptools python-scipy libatlas-dev libatlas3-base
  File "<stdin>", line 1
    sudo apt-get install build-essential python-dev python-numpy python-setuptools python-scipy libatlas-dev libatlas3-base
           ^
SyntaxError: invalid syntax

最佳答案

看起来您正在从 Python 解释器运行它。输入exit(),然后再次粘贴命令

关于python - 在 ubuntu 上安装 scikit-learn,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49171535/

相关文章:

python - 如何在Python中向索引添加特定数字?

r - 如何让决策树规则更容易理解?

matlab - 创建交叉验证索引时随机重新排列数据点?

c - 如何在 C 中从 stdin 进行非阻塞输入

python - python scipy/numpy 中的多项式 pmf

python - pd.DataFrame.to_sql(method ="multi") GCP Postgres 引发 struct.error 'h' 格式需要 -32768 <= number <= 32767 和用户定义的 dtypes

linux - g77 编译错误(找不到 crt1.o、crti.o、-lgcc_s)

python - 无法在 ubuntu 13.04 上安装 PIL

python - 如何为元组的每个元素添加一个数字?

amazon-web-services - Amazon Sagemaker Notebook 实例在我注销时停止执行