安装TensorRT出现:ERROR: tensorrt-8.5.1.7-cp37-none-linux_x86_64.whl is not a supported wheel on this platform.
一、安装教程链接请参考下面:
1.教程一:点击传送。封面太好看了~~
2.教程二:点击传送。
二、安装过程出现错误
1.错误类型:ERROR: tensorrt-8.5.1.7-cp37-none-linux_x86_64.whl is not a supported wheel on this platform.
2.错误原因:tensorrt-8.5.1.7-cp37-none-linux_x86_64.whl中的cp37指的是python==3.7.0,我的python安装的是3.7.17,所以报错。
3.解决办法:里面有很多版本,你可尝试安装cp38试试,反正我pip install tensorrt-8.2.5.1-cp38-none-linux_x86_64.whl就可以了;如果在不成功,你就尝试cp36;如果在不成功,那就去英伟达官方重新下一个版本试试。