Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 15959  / 1 Year ago, sun, april 30, 2023, 5:12:23

I've been trying to install some Python libraries and packages and keep getting this error. This is a sample but the same issue i face with matplotlib and panda and so on.


sudo apt-get install python-scipy 
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-scipy 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

E: Package 'python-scipy' has no installation candidate

I tried enabling universe repository andit turns out it is already enabled. So i can't figure out the issue yet.
Thank in advance for your help.


More From » apt

 Answers
4

The package you want is python3-scipy, not python-scipy. It can be installed using:


apt install python3-scipy

You might be better off to install scipy via pip (for Python 2) or pip3 (for Python 3). pip is a package manager for Python packages.


pip install scipy

or


pip3 install scipy

If you run into a similar problem in the future, you can use pip3 search scipy with the relevant search term to look for the required package. Check out man pip3 for the details.


[#2656] Monday, May 1, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eanda

Total Points: 439
Total Questions: 116
Total Answers: 105

Location: Armenia
Member since Sat, Dec 31, 2022
1 Year ago
eanda questions
Tue, Nov 22, 22, 15:24, 2 Years ago
Sat, Oct 16, 21, 23:48, 3 Years ago
Sun, Jul 3, 22, 09:38, 2 Years ago
Thu, Feb 3, 22, 14:33, 2 Years ago
;