bug修复:Process finished with exit code 132 (interrupted by signal 4: SIGILL)

M1pro芯片,pycharm, macos 系统,pip配置tensorflow环境后,import tensorflow时返回:

Process finished with exit code 132 (interrupted by signal 4: SIGILL)
解决方法:

打开终端(若是分多个环境需要先激活tensorflow所在环境)

先卸载pip安装的环境

>> pip uninstall protobuf
>> pip uninstall tensorflow

使用conda重新安装tensorflow

conda install tensorflow

注意:必须使用conda!!!!

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
THE END
分享
二维码
< <上一篇
下一篇>>