Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)

I have already installed python3.2 in Ubuntu (the default edition is not deleted). But if I use the below code for the installation:

python3.2 setup.py install

I received:

 "error: command 'gcc' failed with exit status 1",

"src/ft2font.cpp:2224:29: error: ‘Int’ is not a member of ‘Py’"

And when I apply:

sudo apt-get install python-matplotlib 

I can able to use the matplot package in python2.x, while I still can not use it with python3.2...

1 Answer

0 votes
by (108k points)

Please be informed that the Matplotlib package supports python 3.x as of version 1.2, released in January 2013.

To install it, you just have to call pip install matplotlib or use your favored mechanism (conda, homebrew, windows installer, system package manager, etc). In some situations, you may need to install extra non-python dependencies (libpng and freetype) within your system's package manager.

Want to become a Python Developer? Check out this insightful Python Certification course.

Related questions

0 votes
1 answer
asked Feb 23, 2021 in Python by adhiraj (4k points)
0 votes
1 answer
asked Jan 20, 2021 in Python by ashely (50.2k points)
0 votes
1 answer
asked Jul 13, 2020 in Python by ashely (50.2k points)
0 votes
1 answer

Browse Categories

...