Как установить scipy и numpy на Ubuntu 16.04?

Я пытаюсь установить scipy и numpy на Ubuntu 16.04, но я продолжаю получать следующую ошибку. Может ли кто-нибудь сказать мне, как устанавливать зависимости?

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.
1
задан 7 June 2017 в 10:33

1 ответ

Чтобы установить зависимости, откройте терминал и введите следующие команды:

sudo apt update  
sudo apt install --no-install-recommends python2.7-minimal python2.7  
sudo apt install python-numpy python-scipy

Для Python 3.x

sudo apt update  
sudo apt install --no-install-recommends python3-minimal python3  
sudo apt install python3-numpy python3-scipy
0
ответ дан 23 May 2018 в 02:41
  • 1
    Я все еще получаю ту же ошибку. – Rahul 6 January 2017 в 14:18
  • 2
    python --version дает Python 2.7.12 – Rahul 6 January 2017 в 14:20
  • 3
    python-numpy : Depends: python:any (>= 2.7.5-5~) - это сообщение об ошибке в вашем вопросе. У вас установлена ​​более новая версия Python 2.7.12, однако вы все равно получаете ту же ошибку. – karel 6 January 2017 в 14:28

Другие вопросы по тегам:

Похожие вопросы: