安装tensorrt-8.2.1.8-cp36-none-linux_x86_64.whl
使用对应版本的python进行安装即可
常用命令:
pip3 install tensorrt-8.2.1.8-cp36-none-linux_x86_64.whl
如果这时候系统报错:
ERROR: tensorrt-8.2.1.8-cp36-none-linux_x86_64.whl is not a supported wheel on this platform.
处理方案:
1、检查本机的python版本是否和文件上的一致, tensorrt-8.2.1.8-cp36-none-linux_x86_64.whl 名字上的-cp36-说明该文件使用python3.6才可以编译。
2、如果python版本是对的,则可以使用pip debug --verbose 命令来查看本机支持的格式名称,如下图中的Compatible tags: 204下方的
复制其中一个,并将tensorrt-8.2.1.8-cp36-none-linux_x86_64.whl 后缀名改为 对应的名称,例如:
tensorrt-8.2.1.8-cp36-none-linux_x86_64.whl ----------------> tensorrt-8.2.1.8-cp36-cp36m-linux_aarch64.whl
再次运行命令:
pip3 install tensorrt-8.2.1.8-cp36-cp36m-linux_aarch64.whl