Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TensorRT python package incompatibility with python 3.6

Installing TensorRT 4 from its tar file is the only available option if you installed CUDA using the run file. However, the tar file only includes python TensorRT wheel files for python 2.7 and 3.5. No python 3.6 wheel file provided.

I cannot force install the python 3.5 wheel file on my python 3.6 system:

$ pip install tensorrt-4.0.0.3-cp35-cp35m-linux_x86_64.whl 
tensorrt-4.0.0.3-cp35-cp35m-linux_x86_64.whl is not a supported wheel on this platform.

Also, I cannot create a new python 3.5 virtualenv just to use TensorRT.

Is there a way to manually install this package on my python 3.6 platform by manually copying the files?

like image 701
Sam Avatar asked Oct 23 '25 20:10

Sam


1 Answers

Yes, you can rename this file to tensorrt-4.0.0.3-cp36-cp36m-linux_x86_64.whl and try again.

It works.

like image 100
leeyang Avatar answered Oct 26 '25 17:10

leeyang