简体   繁体   中英

How to fix "E: Package 'libatlas-dev' has no installation candidate" While installing Scipy for Scikit learn?

how do i fix this problem i gave

sudo apt-get install python-setuptools python-scipy libatlas-dev libatlas3-base

to install scipy for installing scikit learn and got an error like this

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libatlas-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libatlas-base-dev:i386 libatlas-base-dev

E: Package 'libatlas-dev' has no installation candidate

I have tried updating but nothing seems to work.

I tried to install libatals-dev on my raspberry pi and my pi told me this :

Reading package lists... Done Building dependency tree Reading state information... Done

Package libatlas-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: libatlas-base-dev

E: Package libatlas-dev has no installation candidate

So please try sudo apt-get install libatlas-base-dev instead.

You may have been misdirected by Google into following instructions on a page such as https://scikit-learn.org/0.16/install.html . If the goal is to install scikit-learn you may be better off with just pip3 install -U scikit-learn according to https://scikit-learn.org/stable/install.html . That's what I did on Ubuntu 20.04.1 LTS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM