m1 MacBook) Contact Python, tensorflow installation version to PiCham

Asked 2 years ago, Updated 2 years ago, 46 views

At first, I installed 3.7 additionally because I had to use python 3.9 and tensorflow. (Python 3.9 does not support tensorflow.)

"Process completed with exit code 132 (interrupted by signal 4: SIGILL)"

There was an error like this. I asked a question about Stack Overflow and got the above answer

Seems that this problem happens when you have multiple python interpreters installed, and some of them are for differente architectuers (x86_64 vs arm64). You need to make sure that the correct python interpreter is being used, if you installed Apple's version of tensorflow, then that probably requires an arm64 interpreter.

If you use rosetta (Apple's x86_64 emulator) then you need to use a x86_64 python interpreter, if you somehow load the arm64 python interpreter, you will get the illegal instruction error (which totally makes sense).

If you use any script that installs new python interpreters, then you need to make sure the correct interpreter for the architecture is installed (most likely arm64).

I heard that it is an error that occurs when several Python interpreters are installed. I don't remember what process I installed each Python in, so I don't know what and how to delete it. It didn't work for a long time, so I installed a lot of things, but I think it became a poison.

https://youtu.be/W_Qbrnp6uis (FYI, I installed TensorFlow as an anaconda after seeing this.) )

Now I don't even know what to do and how to solve it. I haven't been able to do anything for the past few days, but the more I do it, the more I feel weird.

Please help me if you know.

python tensorflow

2022-09-20 18:05

1 Answers

There is a person who posted a blog post on Facebook Tenplco as follows, so I am attaching the link in response. I guess it's still pretty hard to set up tensorflow in m1. Good luck.

https://cpuu.postype.com/post/9091007/


2022-09-20 18:05

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.