pip install pycuda后import tensorrt 报错ModuleNotFoundError: No module named ‘tensorrt‘

参考https://stackoverflow.com/questions/55557912/importerror-no-module-named-tensorrt

# from TensorRT Tar Package ( TensorRT-5.0.2.6/python/ ) 
pip3 install tensorrt-5.0.2.6-py2.py3-none-any.whl  
# pycuda
pip3 install pycuda 

你可能感兴趣的:(pytorch,深度学习)