0

I am trying to install matplotlib on python3.4 (the default version on raspberry pi) via pip3 but the installation always fails.

I have tried installing python3.7 but pip3 defaults to installing on python3.4 and I don't know how to change that.

The error message I constantly get is " Beginning with Matplotlib 3.1, Python 3.6 or above is required.". How do I update my python on the pi or install it on python3.4?

Any help appreciated.

1
  • 1
    Have you tried to install it via apt ? sudo apt-get install python3-matplotlib The dependencies should be OK there. Commented Aug 12, 2019 at 15:48

3 Answers 3

1

Having just looked at older releases ( https://pypi.org/project/matplotlib/#history ), I think 2.2.4 was the last version to work on Python 3.4 You can install a specific version of the library using the command

pip install matplotlib==2.2.4
Sign up to request clarification or add additional context in comments.

Comments

1

Use the package manager of the distribution :

sudo apt install python3-matplotlib

The dependencies should be OK there.

Comments

0

You can just use

sudo pip3 install matplotlib

or for a local instlal of the lib

pip3 install --user <your_username> matplotlib

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.