代码拉取完成,页面将自动刷新
Create a directory for external sources and download pybind11 into it.
export EXT_PATH=~/external
mkdir -p $EXT_PATH && cd $EXT_PATH
git clone https://github.com/pybind/pybind11.git -b v2.6.2
Include/
directory into $EXT_PATH/pythonX.Y/include/
directory.x86_64
(amd64
), aarch64
(arm64
), and ppc64le
(ppc64el
)ar x <libpython...>.deb
data.tar.xz
with tar -xvf
./usr/include/<platform>/
directory into the $$EXT_PATH/pythonX.Y/include/
directory here.
It should only contain a single file - pyconfig.h
Use build.sh
to generate the installable wheels for intended python version and target architecture.
Example: for python 3.8 x86_64
wheel,
cd $TRT_OSSPATH/python
PYTHON_MAJOR_VERSION=3 PYTHON_MINOR_VERSION=8 TARGET_ARCHITECTURE=x86_64 ./build.sh
python3 -m pip install build/dist/tensorrt-*.whl
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。