问题:
pytorch训练程序启动的时候出现:段错误(吐核)

(mypytorch) [iot1@P100v0 mech_demo]$ python mech_main.py 
段错误(吐核)

解决方案:
用Vscode单步调试,定位
发现是matplotlib安装错误的问题

Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
段错误(吐核)

-重新安装matplotlib

pip install matplotlib==2.2.2

这里选的版本是2.2.2,因为本机有环境已经通过了。