【发布时间】:2018-02-11 07:03:28
【问题描述】:
我在尝试在 Ubuntu 上安装以下软件包时遇到问题:
- scipy
- numpy
- matplotlib
- 熊猫
- sklearn
当我执行命令时:sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose
我收到以下消息:Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
libatlas-dev : Depends: libblas-dev but it is not going to be installed
libatlas3-base : Depends: libgfortran3 (>= 4.6) but it is not going to be installed
Depends: libblas-common but it is not going to be installed
python-dev : Depends: libpython-dev (= 2.7.11-1) but it is not going to be installed
Depends: python2.7-dev (>= 2.7.11-1~) but it is not going to be installed
python-scipy : Depends: python-decorator but it is not going to be installed
Depends: libgfortran3 (>= 4.6) but it is not going to be installed
Recommends: python-imaging but it is not going to be installed
python-setuptools : Depends: python-pkg-resources (= 20.7.0-1) but it is not going to be installed
rstudio : Depends: libjpeg62 but it is not going to be installed
Depends: libgstreamer0.10-0 but it is not going to be installed
Depends: libgstreamer-plugins-base0.10-0 but it is not going to be installed
Recommends: r-base (>= 2.11.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
所以包安装失败,但是我真的需要这些包来开始一个新项目,我怎样才能成功安装这些包?
【问题讨论】:
-
避免 Python 安装问题的最好方法是下载 Anaconda。
-
阅读错误信息!它包含说明。
标签: python numpy ubuntu matplotlib installation