Ich versuche, scipy and numpy unter Ubuntu 16.04 zu installieren, erhalte jedoch weiterhin die folgende Fehlermeldung. Kann mir jemand sagen, wie man die Abhängigkeiten installiert?
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python-numpy : Depends: python:any (>= 2.7.5-5~)
E: Unable to correct problems, you have held broken packages.
Sie können auch pip (das alternative Python -Paketinstallationsprogramm) verwenden, um numpy und scipy für das gesamte System zu installieren:
Sudo apt-get install python-pip
Sudo pip install numpy scipy
Dies könnte es unabhängig von Abhängigkeitsfehlern im Ubuntu-Paketmanager installieren.
Um die Abhängigkeiten in allen derzeit unterstützten Versionen von Ubuntu zu installieren, öffnen Sie das Terminal und geben Sie die folgenden Befehle ein:
Sudo apt update
Sudo apt install --no-install-recommends python2.7-minimal python2.7
Sudo apt install python-numpy python-scipy
Für Python 3.x
Sudo apt update
Sudo apt install --no-install-recommends python3-minimal python3
Sudo apt install python3-numpy python3-scipy