Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6980981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:05:49+00:00 2026-05-27T18:05:49+00:00

I installed python3.2 in ubuntu (the default edition is not deleted), and I follow

  • 0

I installed python3.2 in ubuntu (the default edition is not deleted), and I follow the steps in here

However when i use

python3.2 setup.py install

I got:

 "error: command 'gcc' failed with exit status 1",
"src/ft2font.cpp:2224:29: error: ‘Int’ is not a member of ‘Py’"

And when I use
sudo apt-get install python-matplotlib
I can use matplot in python2.x, while I still can not use it with python3.2
How can I install matplot in python3.2 ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:05:49+00:00Added an answer on May 27, 2026 at 6:05 pm

    Matplotlib supports python 3.x as of version 1.2, released in January, 2013.

    To install it, have a look at the installation instructions. In general, call pip install matplotlib or use your preferred mechanism (conda, homebrew, windows installer, system package manager, etc). In some cases you may need to install additional non-python dependencies (libpng and freetype) through your system’s package manager.

    The answer below is left for historical reasons and as an example of installing the development version from github.


    The current release of matplotlib doesn’t support python3.

    There’s a github branch for python3 support for a couple of years now, but it hasn’t been stable on anything other than linux until fairly recently. I believe that branch was recently merged back into the main branch.

    If you want to use matplotlib on python3, you’ll need to build from the current tip https://github.com/matplotlib/matplotlib

    To build it, do something similar to the following:

    git clone https://github.com/matplotlib/matplotlib
    cd matplotlib
    python3 setup.py build
    sudo python3 setup.py install
    

    If you don’t have git installed, then you can just download a tarball of the current git tip instead: https://github.com/matplotlib/matplotlib/tarball/master

    You’ll need to have numpy installed for python3. (Installing it for python2 doesn’t install it for python3.)

    In most cases, that’s all you’ll need to do. For a default install, the only non-included python library is numpy. The other dependencies (e.g. libpng, freetype) are system libraries and if you can build matplotlib for python2, you already have them.

    If you want a non-default install (e.g. if you want any of the non-default backends), then you’ll need to copy the setup.cfg.default template to setup.cfg and edit it to match what you want. You’ll probably only need to do this if you’re planning to embed matplotlib in a gtk or qt application that you’re writing, in which case you’ll want the gtkagg or qtagg backends instead of just the default tkagg backend.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Karmic Koala which has Python 2.6 installed by default. However I can't
On Ubuntu 10.10, I am unable to install lxml to python 2.7. Here are
i have Ubuntu and installed python3 since my script is written in it. Since
I get an error when trying to use VPython on Ubuntu 11.10. I installed
How to install OpenCV (exactly 2.3.*, not 2.1.*) with python bindings in Ubuntu (or
I just installed the first release candidate of Python 3.0 and got this error
djnago1.3.1 python2.7.2+ ubuntu 11.10 I am making syncdb, after creating superuser I've got that
Background: I am using Ubuntu The newer python version is not in the apt-get
I'm using Python 2.7.2 on Ubuntu 11.10. I got this error when importing the
I'd like to how to upgrade the default python installation(2.5.2) supplied with ubuntu 8.04

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.