I am unable to install matplotlib.
I already have installed latest libfreetype and libfreetype-dev.But it still errors out on freetype,
I am running Debian testing on my machine. Python is latest 3.5.b3 compiled from source and in virtual env , running the command :
pip install matplotlib
gives following error.
...... freetype: no [Requires freetype2 2.3 or later. Found ...] png: yes [version 1.2.50] ..... ..... * The following required packages can not be built: * freetype ....
Full error log here: http://pastebin.com/4N6de3Vw/
I do not understand why requirement is not marked for compilation even though found,
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Python - Unable to install matplotlib
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Python - Unable to install matplotlib
Can't you just install it from the repositories?
https://packages.debian.org/search?keyw ... ection=all
I've never used matplotlib so excuse me if I'm talking nonsense here.
https://packages.debian.org/search?keyw ... ection=all
I've never used matplotlib so excuse me if I'm talking nonsense here.
deadbang
Re: Python - Unable to install matplotlib
Yes. I'm aware of the python-matplotlib in the repos.Head_on_a_Stick wrote:Can't you just install it from the repositories?
https://packages.debian.org/search?keyw ... ection=all
I've never used matplotlib so excuse me if I'm talking nonsense here.
But I am using Python version 3.5b3 in virtualenv, so I kinda have to have to compile from source.
And Its alright, one thing about debian is you can apt-get anything,
This also happens on latest source from github.
So there must be something going wrong with the way freetype is being detected.
Checking into setup.py now.
Re: Python - Unable to install matplotlib
@Head_on_a_Stick
The problem still happened on latest github sources. so I checked into setup.py and found the problem.
Apparently, matplotlib was checking for freetype version by using " freeetype-config --ftversion" . But running that command in terminal gave " .." which matplotlib was incorrectly interpreting. I removed the check and hardcoded the freetype version and did setup.py build. And it worked!
man freetype-config says.
--ftversion Return the FreeType version number
I think it must be issue with freetype-config? Can you please test the command to be sure?
The problem still happened on latest github sources. so I checked into setup.py and found the problem.
Apparently, matplotlib was checking for freetype version by using " freeetype-config --ftversion" . But running that command in terminal gave " .." which matplotlib was incorrectly interpreting. I removed the check and hardcoded the freetype version and did setup.py build. And it worked!
man freetype-config says.
--ftversion Return the FreeType version number
I think it must be issue with freetype-config? Can you please test the command to be sure?
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Python - Unable to install matplotlib
Er, I'm in Arch at the moment (and seeding so I can't leave) so this may not be useful:
Code: Select all
empty@Arch ~ % freetype-config --ftversion
2.6.0
deadbang
Re: Python - Unable to install matplotlib
Oh, I see. Well, arch always has the latest versionsHead_on_a_Stick wrote:Er, I'm in Arch at the moment (and seeding so I can't leave) so this may not be useful:Code: Select all
empty@Arch ~ % freetype-config --ftversion 2.6.0
On my debian testing I'm getting this.
Code: Select all
cswl:~/> freetype-config --ftversion
..
cswl:~/> apt-cache policy libfreetype6
libfreetype6:
Installed: 2.5.2-4
Candidate: 2.5.2-4
Version table:
*** 2.5.2-4 0