Problem in installing matplotlib ubuntu 16.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I have to install python package "matplotlib" in Python 2.7; Ubuntu 16.04
After inserting:



pip install matplotlib


I get the following error messagge:
open here error picture
I tried this solution:



sudo apt-get install libfreetype6-dev libxft-dev


but I got this error:



"Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze

Lettura informazioni sullo stato... Fatto
E: Impossibile trovare il pacchetto libfreetype6-dev
E: Impossibile trovare il pacchetto libxft-dev"







share|improve this question






















  • Please copy and paste output and error messages from the terminal to your question above. Do not post screenshots of the text.
    – user68186
    Apr 23 at 15:01










  • No reason to install/build matplotlib with pip. This will do : sudo apt update && sudo apt install python-matplotlib
    – Knud Larsen
    Apr 23 at 15:15










  • It returns error : Impossible to find python-matplotlib package, maybe I choose a wrong directory?
    – Alice
    Apr 24 at 10:29















up vote
0
down vote

favorite












I have to install python package "matplotlib" in Python 2.7; Ubuntu 16.04
After inserting:



pip install matplotlib


I get the following error messagge:
open here error picture
I tried this solution:



sudo apt-get install libfreetype6-dev libxft-dev


but I got this error:



"Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze

Lettura informazioni sullo stato... Fatto
E: Impossibile trovare il pacchetto libfreetype6-dev
E: Impossibile trovare il pacchetto libxft-dev"







share|improve this question






















  • Please copy and paste output and error messages from the terminal to your question above. Do not post screenshots of the text.
    – user68186
    Apr 23 at 15:01










  • No reason to install/build matplotlib with pip. This will do : sudo apt update && sudo apt install python-matplotlib
    – Knud Larsen
    Apr 23 at 15:15










  • It returns error : Impossible to find python-matplotlib package, maybe I choose a wrong directory?
    – Alice
    Apr 24 at 10:29













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have to install python package "matplotlib" in Python 2.7; Ubuntu 16.04
After inserting:



pip install matplotlib


I get the following error messagge:
open here error picture
I tried this solution:



sudo apt-get install libfreetype6-dev libxft-dev


but I got this error:



"Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze

Lettura informazioni sullo stato... Fatto
E: Impossibile trovare il pacchetto libfreetype6-dev
E: Impossibile trovare il pacchetto libxft-dev"







share|improve this question














I have to install python package "matplotlib" in Python 2.7; Ubuntu 16.04
After inserting:



pip install matplotlib


I get the following error messagge:
open here error picture
I tried this solution:



sudo apt-get install libfreetype6-dev libxft-dev


but I got this error:



"Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze

Lettura informazioni sullo stato... Fatto
E: Impossibile trovare il pacchetto libfreetype6-dev
E: Impossibile trovare il pacchetto libxft-dev"









share|improve this question













share|improve this question




share|improve this question








edited Apr 23 at 14:47

























asked Apr 23 at 11:40









Alice

11




11











  • Please copy and paste output and error messages from the terminal to your question above. Do not post screenshots of the text.
    – user68186
    Apr 23 at 15:01










  • No reason to install/build matplotlib with pip. This will do : sudo apt update && sudo apt install python-matplotlib
    – Knud Larsen
    Apr 23 at 15:15










  • It returns error : Impossible to find python-matplotlib package, maybe I choose a wrong directory?
    – Alice
    Apr 24 at 10:29

















  • Please copy and paste output and error messages from the terminal to your question above. Do not post screenshots of the text.
    – user68186
    Apr 23 at 15:01










  • No reason to install/build matplotlib with pip. This will do : sudo apt update && sudo apt install python-matplotlib
    – Knud Larsen
    Apr 23 at 15:15










  • It returns error : Impossible to find python-matplotlib package, maybe I choose a wrong directory?
    – Alice
    Apr 24 at 10:29
















Please copy and paste output and error messages from the terminal to your question above. Do not post screenshots of the text.
– user68186
Apr 23 at 15:01




Please copy and paste output and error messages from the terminal to your question above. Do not post screenshots of the text.
– user68186
Apr 23 at 15:01












No reason to install/build matplotlib with pip. This will do : sudo apt update && sudo apt install python-matplotlib
– Knud Larsen
Apr 23 at 15:15




No reason to install/build matplotlib with pip. This will do : sudo apt update && sudo apt install python-matplotlib
– Knud Larsen
Apr 23 at 15:15












It returns error : Impossible to find python-matplotlib package, maybe I choose a wrong directory?
– Alice
Apr 24 at 10:29





It returns error : Impossible to find python-matplotlib package, maybe I choose a wrong directory?
– Alice
Apr 24 at 10:29











2 Answers
2






active

oldest

votes

















up vote
1
down vote













  1. Check in Software & Updates -> Ubuntu Software tab that the 2nd software source universe is enabled.


  2. The currently supported releases of Ubuntu are 14.04, 16.04 and 17.10. If you are not running a currently supported release, see the answers to this question: How to install software or upgrade from an old unsupported release?.


Matplotlib is available in the default Ubuntu repositories in all currently supported versions of Ubuntu. To install Matplotlib open the terminal and type:



sudo apt update 
sudo apt upgrade
sudo apt install python-matplotlib # for Python 2.x


or



sudo apt update 
sudo apt upgrade
sudo apt install python3-matplotlib # for Python 3.x


Other related packages are python-matplotlib-data python-matplotlib-dbg python-matplotlib-doc and python-matplotlib-venn for Python 2.x and python3-matplotlib-dbg python3-matplotlib-venn for Python 3.x.






share|improve this answer






















  • It returns error : Impossible to find python-matplotlib package
    – Alice
    Apr 24 at 10:29










  • thanks for your answer, unfortunately universe is already enabled. Could it be that I'm working on a wrong directory?
    – Alice
    Apr 24 at 11:41

















up vote
0
down vote













Install python dev file by typing:



sudo apt install python-dev


Then proceed






share|improve this answer




















  • They should probably use the matplotlib from the repositories before trying to install from pip. The only reason they'd have to build from pip is if they absolutely must have the newer libraries.
    – Thomas Ward♦
    Apr 23 at 15:20










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027437%2fproblem-in-installing-matplotlib-ubuntu-16-04%23new-answer', 'question_page');

);

Post as a guest






























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













  1. Check in Software & Updates -> Ubuntu Software tab that the 2nd software source universe is enabled.


  2. The currently supported releases of Ubuntu are 14.04, 16.04 and 17.10. If you are not running a currently supported release, see the answers to this question: How to install software or upgrade from an old unsupported release?.


Matplotlib is available in the default Ubuntu repositories in all currently supported versions of Ubuntu. To install Matplotlib open the terminal and type:



sudo apt update 
sudo apt upgrade
sudo apt install python-matplotlib # for Python 2.x


or



sudo apt update 
sudo apt upgrade
sudo apt install python3-matplotlib # for Python 3.x


Other related packages are python-matplotlib-data python-matplotlib-dbg python-matplotlib-doc and python-matplotlib-venn for Python 2.x and python3-matplotlib-dbg python3-matplotlib-venn for Python 3.x.






share|improve this answer






















  • It returns error : Impossible to find python-matplotlib package
    – Alice
    Apr 24 at 10:29










  • thanks for your answer, unfortunately universe is already enabled. Could it be that I'm working on a wrong directory?
    – Alice
    Apr 24 at 11:41














up vote
1
down vote













  1. Check in Software & Updates -> Ubuntu Software tab that the 2nd software source universe is enabled.


  2. The currently supported releases of Ubuntu are 14.04, 16.04 and 17.10. If you are not running a currently supported release, see the answers to this question: How to install software or upgrade from an old unsupported release?.


Matplotlib is available in the default Ubuntu repositories in all currently supported versions of Ubuntu. To install Matplotlib open the terminal and type:



sudo apt update 
sudo apt upgrade
sudo apt install python-matplotlib # for Python 2.x


or



sudo apt update 
sudo apt upgrade
sudo apt install python3-matplotlib # for Python 3.x


Other related packages are python-matplotlib-data python-matplotlib-dbg python-matplotlib-doc and python-matplotlib-venn for Python 2.x and python3-matplotlib-dbg python3-matplotlib-venn for Python 3.x.






share|improve this answer






















  • It returns error : Impossible to find python-matplotlib package
    – Alice
    Apr 24 at 10:29










  • thanks for your answer, unfortunately universe is already enabled. Could it be that I'm working on a wrong directory?
    – Alice
    Apr 24 at 11:41












up vote
1
down vote










up vote
1
down vote









  1. Check in Software & Updates -> Ubuntu Software tab that the 2nd software source universe is enabled.


  2. The currently supported releases of Ubuntu are 14.04, 16.04 and 17.10. If you are not running a currently supported release, see the answers to this question: How to install software or upgrade from an old unsupported release?.


Matplotlib is available in the default Ubuntu repositories in all currently supported versions of Ubuntu. To install Matplotlib open the terminal and type:



sudo apt update 
sudo apt upgrade
sudo apt install python-matplotlib # for Python 2.x


or



sudo apt update 
sudo apt upgrade
sudo apt install python3-matplotlib # for Python 3.x


Other related packages are python-matplotlib-data python-matplotlib-dbg python-matplotlib-doc and python-matplotlib-venn for Python 2.x and python3-matplotlib-dbg python3-matplotlib-venn for Python 3.x.






share|improve this answer














  1. Check in Software & Updates -> Ubuntu Software tab that the 2nd software source universe is enabled.


  2. The currently supported releases of Ubuntu are 14.04, 16.04 and 17.10. If you are not running a currently supported release, see the answers to this question: How to install software or upgrade from an old unsupported release?.


Matplotlib is available in the default Ubuntu repositories in all currently supported versions of Ubuntu. To install Matplotlib open the terminal and type:



sudo apt update 
sudo apt upgrade
sudo apt install python-matplotlib # for Python 2.x


or



sudo apt update 
sudo apt upgrade
sudo apt install python3-matplotlib # for Python 3.x


Other related packages are python-matplotlib-data python-matplotlib-dbg python-matplotlib-doc and python-matplotlib-venn for Python 2.x and python3-matplotlib-dbg python3-matplotlib-venn for Python 3.x.







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 24 at 12:16

























answered Apr 23 at 15:14









karel

50.2k11107127




50.2k11107127











  • It returns error : Impossible to find python-matplotlib package
    – Alice
    Apr 24 at 10:29










  • thanks for your answer, unfortunately universe is already enabled. Could it be that I'm working on a wrong directory?
    – Alice
    Apr 24 at 11:41
















  • It returns error : Impossible to find python-matplotlib package
    – Alice
    Apr 24 at 10:29










  • thanks for your answer, unfortunately universe is already enabled. Could it be that I'm working on a wrong directory?
    – Alice
    Apr 24 at 11:41















It returns error : Impossible to find python-matplotlib package
– Alice
Apr 24 at 10:29




It returns error : Impossible to find python-matplotlib package
– Alice
Apr 24 at 10:29












thanks for your answer, unfortunately universe is already enabled. Could it be that I'm working on a wrong directory?
– Alice
Apr 24 at 11:41




thanks for your answer, unfortunately universe is already enabled. Could it be that I'm working on a wrong directory?
– Alice
Apr 24 at 11:41












up vote
0
down vote













Install python dev file by typing:



sudo apt install python-dev


Then proceed






share|improve this answer




















  • They should probably use the matplotlib from the repositories before trying to install from pip. The only reason they'd have to build from pip is if they absolutely must have the newer libraries.
    – Thomas Ward♦
    Apr 23 at 15:20














up vote
0
down vote













Install python dev file by typing:



sudo apt install python-dev


Then proceed






share|improve this answer




















  • They should probably use the matplotlib from the repositories before trying to install from pip. The only reason they'd have to build from pip is if they absolutely must have the newer libraries.
    – Thomas Ward♦
    Apr 23 at 15:20












up vote
0
down vote










up vote
0
down vote









Install python dev file by typing:



sudo apt install python-dev


Then proceed






share|improve this answer












Install python dev file by typing:



sudo apt install python-dev


Then proceed







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 23 at 14:54









Subham Debnath

112




112











  • They should probably use the matplotlib from the repositories before trying to install from pip. The only reason they'd have to build from pip is if they absolutely must have the newer libraries.
    – Thomas Ward♦
    Apr 23 at 15:20
















  • They should probably use the matplotlib from the repositories before trying to install from pip. The only reason they'd have to build from pip is if they absolutely must have the newer libraries.
    – Thomas Ward♦
    Apr 23 at 15:20















They should probably use the matplotlib from the repositories before trying to install from pip. The only reason they'd have to build from pip is if they absolutely must have the newer libraries.
– Thomas Ward♦
Apr 23 at 15:20




They should probably use the matplotlib from the repositories before trying to install from pip. The only reason they'd have to build from pip is if they absolutely must have the newer libraries.
– Thomas Ward♦
Apr 23 at 15:20

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027437%2fproblem-in-installing-matplotlib-ubuntu-16-04%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491