m1 맥북) 파이참에 Python, tensorflow설치 버전 문의

조회수 2575회

처음에 python 3.9를 사용하다 tensorflow를 사용해야되서 3.7을 추가로 설치했습니다. (python 3.9는 텐서플로우 지원이 안된다고 합니다.) 이미지

그랬더니 "Process finished with exit code 132 (interrupted by signal 4: SIGILL)".

이와 같은 오류가 뜨더라구요. 스택오버플로우에 질문해서 위와 같은 답변을 얻었는데 보니깐

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).

여러개의 파이썬 인터프리터가 설치 되었을 때 발생하는 오류라고 하더라구요. 제가 각각의 파이썬을 설치할때 어떤 과정으로 설치했는지 잘 기억이 나지 않아 무엇을 어떻게 삭제해야되는지 잘 모르겠습니다. 이미지 이미지 계속 안되서 정말 많은 걸 설치했는데 이게 오히려 독이 된거 같네요.

https://youtu.be/W_Qbrnp6uis (참고로 텐서플로우는 이거보고 아나콘다로 설치했습니다 )

이제는 제가 뭘 어떻게 해결해야하는지 감도 오지 않습니다. 요 며칠동안 아무것도 못하고 이거만 하는 중인데 하면 할 수록 이상해지는거 같고(정신도 같이 이상해지는 중..) 정말 착잡하네요.

아시는 분들 제발 도와주세요.

1 답변

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)