Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matplotlib installation through pip #9

Closed
saxena-codes opened this issue Dec 25, 2023 · 2 comments
Closed

Matplotlib installation through pip #9

saxena-codes opened this issue Dec 25, 2023 · 2 comments

Comments

@saxena-codes
Copy link

Issue:

Error while running python mpl_squares.py at Page 302 on raspberry pi.
Following error: ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory

Found this reference:
https://numpy.org/devdocs/user/troubleshooting-importerror.html#raspberry-pi

Tried both the options mentioned in above reference, none worked. Please guide.

@saxena-codes
Copy link
Author

This worked for me:

sudo apt remove python3-numpy
pip uninstall numpy
pip install numpy==1.21

It seems matplotlib only work with NumPy 1.21 version. Don't know why NumPy 1.26 is not working with matplotlib.

@ehmatthes Can be mentioned in the book/ references for other users.

Regards,

@ehmatthes
Copy link
Owner

I'm glad you got that sorted for your specific raspberry pi. I can't include notes in the book about compatibility issues on every platform like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants