五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

Nvidia nano主板安裝python3.9.1

2023-03-10 22:46 作者:向青年人學(xué)習(xí)  | 我要投稿

1. Building python3.9

$ sudo apt install zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev libbz2-dev

$ wget https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tar.xz

$ tar xvf Python-3.9.1.tar.xz Python-3.9.1/

$ mkdir build-python-3.9.1

$ cd build-python-3.9.1/

$ ../Python-3.9.1/configure --enable-optimizations

$ make -j $(nproc)

$ sudo -H make altinstall

$ cd ../


2. Build cmake 3.13.5

$ sudo apt-get install -y protobuf-compiler libprotobuf-dev openssl libssl-dev libcurl4-openssl-dev

$ wget https://github.com/Kitware/CMake/releases/download/v3.13.5/cmake-3.13.5.tar.gz

$ tar xvf cmake-3.13.5.tar.gz

$ rm cmake-3.13.5.tar.gz

$ cd cmake-3.13.5/

$ ./bootstrap --system-curl

$ make -j$(nproc)

$ echo 'export PATH='${PWD}'/bin/:$PATH' >> ~/.bashrc

$ source ~/.bashrc

$ cd ../


3. Prepare header

$ mkdir python3.9

$ mkdir python3.9/include

$ wget http://ftp.us.debian.org/debian/pool/main/p/python3.9/libpython3.9-dev_3.9.9-2_arm64.deb

$ ar x libpython3.9-dev_3.9.9-2_arm64.deb

$ tar -xvf data.tar.xz

$ cp ./usr/include/aarch64-linux-gnu/python3.9/pyconfig.h python3.9/include/

$ cp -r Python-3.9.1/Include/* python3.9/include/


4. Build TensorRT pybinding

$ git clone https://github.com/pybind/pybind11.git

$ git clone -b release/8.0 https://github.com/NVIDIA/TensorRT.git

$ cd TensorRT

$ git submodule update --init --recursive

Please replay?{TensorRT}/python/build.sh?with this file:?build.sh?(2.5 KB)

build.sh-->https://forums.developer.nvidia.com/uploads/short-url/oOBhYDgezhZl6IIuoIXSTRiZbuj.sh

注意build.sh中python版本,如果本地的是python3.9,則將build.sh中python改成python3.9

$ cd python/

$ TRT_OSSPATH=${PWD}/.. EXT_PATH=${PWD}/../.. ./build.sh

$ python3.9 -m pip install build/dist/tensorrt-8.0.1.6-cp39-none-linux_aarch64.whl

Reference:

https://forums.developer.nvidia.com/t/jetson-nano-python-3-7-version-for-tensorrt/242694/7


Nvidia nano主板安裝python3.9.1的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
醴陵市| 大化| 卢龙县| 筠连县| 克拉玛依市| 宜城市| 泰安市| 浦东新区| 玉门市| 宁陕县| 麻城市| 靖江市| 天长市| 岢岚县| 邳州市| 响水县| 玛沁县| 宁阳县| 宾阳县| 平远县| 九台市| 明水县| 罗城| 岱山县| 乌海市| 固安县| 博客| 吴旗县| 南汇区| 响水县| 沛县| 阿克| 磐石市| 卓尼县| 杂多县| 晋中市| 海安县| 香河县| 建始县| 湖北省| 白河县|