Unable to install matplotlib via pip

[mirror from Unable to build on Jetson AGX Xavier · Issue #19335 · matplotlib/matplotlib · GitHub]
In using the ODrive motor control card, one of the dependancies is python-matplotlib. This package has been particularly hard to install on my Jetson AGX Xavier, both via pip, pipenv and installing from source, all resulting in an exit code of -4 while installing which, when probing, reveals an error of “Illegal instruction (core dumped)”. On the link above, it is suggested that this error is not related to matplotlib, and if so, I wonder if there are more troubleshooting steps available so that I might isolate and fix this issue.

To reproduce the error:
Jetson AGX Xavier
sudo apt install python python-pip
pip install matplotlib

I’ve tried python 2.7.17, 3.6.9 and 3.7.5. Nothing works. Any advice?

Have a try below command.

sudo apt-get install python3-matplotlib

1 Like