<div dir="ltr">OK, sorry, I hadn't read you message carefully. I can only suppose that the build did not target the correct arch, even though you built it on that machine. I'm guessing that if you could somehow modify the compile flags to --march=native, maybe that would do it. But not sure if you can do this with pip.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 17, 2022 at 8:37 AM andi klein <<a href="mailto:pabloemma@gmail.com">pabloemma@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>Yes, I understand this. This is why
thought downloading it and building from scratch<br>
would rectify this. <br>
<br>
<br>
On 1/16/22 18:32, Neal Becker wrote:<br>
</div>
<blockquote type="cite">
<div dir="auto">Illegal instructions means the executable is not
compiled for your processor.</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sun, Jan 16, 2022, 6:42 PM
andi klein <<a href="mailto:pabloemma@gmail.com" target="_blank">pabloemma@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div> <font size="4"><font face="Times New Roman, Times,
serif">I am trying to get matplotlib to run on a pi0.<br>
The system is running bullseye and the python is 3.9.2<br>
First I did<b> pip install matplotlib<br>
</b>when I do <br>
import matplotlib, I get illegal instruction, so I did
pip uninstall matlpotlib and then did<br>
sudo apt-get install python3-matplotlib<br>
Now I can do import matlpotlib, but I get another
illegal instruction when I do <br>
import matplotlib.pyplot<br>
I removed this version and downloaded the latest tar.gz
file<br>
then:<br>
git clone <a href="https://github.com/matplotlib/matplotlib.git" rel="noreferrer" target="_blank">https://github.com/matplotlib/matplotlib.git</a>
matplotlib<br>
cd matplotlib<br>
python -m pip install -e .<br>
<br>
Now it gives me an illegal istruction again at import
matplotlib.<br>
I am now at my wits end. Doe anyone have seen a similar
behavior?<br>
Thanks, andi<br>
<br>
</font></font>
<div>-- <br>
<img border="0"></div>
</div>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" rel="noreferrer" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote>
</div>
</blockquote>
<br>
<br>
<div>-- <br>
<img src="cid:17e68497782ee262d721" border="0"></div>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><i>Those who don't understand recursion are doomed to repeat it</i></div></div>