Jetson Nano、TX2等 conda 虚拟环境中使用TensorRT、gi等

TensorRT

1.建立软链接

TensorRT系统安装路径为:/usr/lib/python3.6/dist-packages/tensorrt/
执行以下命令,建立虚拟环境(自己的虚拟环境)对应的软链接

sudo ln -s /usr/lib/python3.6/dist-packages/tensorrt* /home/nvndia/archiconda/envs/car/lib/python3.6/site-packages/
2. 查看版本
>>> python
>>> import tensorrt
>>> tensorrt.__version__

gi

sudo apt-get install python3-gi
$ /usr/bin/python3
Python 3.6.9 
>>> import gi
>>> print(gi)
<module 'gi' from '/usr/lib/python3/dist-packages/gi/__init__.py'>
建立软链接
sudo ln -s /usr/lib/python3/dist-packages/gi /home/nvndia/archiconda/envs/car/lib/python3.6/site-packages/

你可能感兴趣的:(conda,python,linux)