PaddlePaddle for Jetson

Below are pre-built PaddlePaddle/Paddle_inference/Fastdeploy packages for Jetson Nano, Jetson TX2/Jetson TX2-NX, Jetson Xavier AGX, Jetson Xavier NX, and Jetson AGX Orin with JetPack 4.5 and newer.

You can also find the NVIDIA high optimized GPU Docker for PaddlePaddle that easy to use with high performance.

PaddlePaddle | NVIDIA NGC
PaddlePaddle-NGC

Here are available Paddle/Paddle-inference/FastDeploy for Jetson plaform.

Jetpack 4.4
Jetpack 4.5
Jetpack 4.6
Jetpack 4.6.1
  • PaddlePaddle:
  • Paddle-inference:
  • FastDeploy:
    $ sudo nvpmodel -m 0     # on Xavier NX, use -m 2  instead (15W 6-core mode)
    $ sudo jetson_clocks
    
    git clone https://github.com/PaddlePaddle/FastDeploy.git
    cd FastDeploy
    mkdir build && cd build
    cmake .. -DBUILD_ON_JETSON=ON \
             -DENABLE_VISION=ON \
             -DENABLE_PADDLE_BACKEND=ON \ # 可选项,如若不需要Paddle Inference后端,可关闭
             -DPADDLEINFERENCE_DIRECTORY=/Download/paddle_inference_jetson \
             -DCMAKE_INSTALL_PREFIX=${PWD}/installed_fastdeploy
    make -j8
    make install
    
    • Python Build Guide:
    $ sudo nvpmodel -m 0     # on Xavier NX, use -m 2  instead (15W 6-core mode)
    $ sudo jetson_clocks
    
    git clone https://github.com/PaddlePaddle/FastDeploy.git
    cd FastDeploy/python
    export BUILD_ON_JETSON=ON
    export ENABLE_VISION=ON
    
    # ENABLE_PADDLE_BACKEND & PADDLEINFERENCE_DIRECTORY为可选项
    export ENABLE_PADDLE_BACKEND=ON
    export PADDLEINFERENCE_DIRECTORY=/Download/paddle_inference_jetson
    
    python setup.py build
    python setup.py bdist_wheel
    
    You can find the built package under FastDeploy/python/dist/ and install with pip install
Jetpack 5.0.2
  • PaddlePaddle:
  • Paddle-inference:
  • FastDeploy:
    $ sudo nvpmodel -m 0     # on Xavier NX, use -m 2  instead (15W 6-core mode)
    $ sudo jetson_clocks
    
    git clone https://github.com/PaddlePaddle/FastDeploy.git
    cd FastDeploy
    mkdir build && cd build
    cmake .. -DBUILD_ON_JETSON=ON \
             -DENABLE_VISION=ON \
             -DENABLE_PADDLE_BACKEND=ON \ # 可选项,如若不需要Paddle Inference后端,可关闭
             -DPADDLEINFERENCE_DIRECTORY=/Download/paddle_inference_jetson \
             -DCMAKE_INSTALL_PREFIX=${PWD}/installed_fastdeploy
    make -j8
    make install
    
    • Python Build Guide:
    $ sudo nvpmodel -m 0     # on Xavier NX, use -m 2  instead (15W 6-core mode)
    $ sudo jetson_clocks
    
    git clone https://github.com/PaddlePaddle/FastDeploy.git
    cd FastDeploy/python
    export BUILD_ON_JETSON=ON
    export ENABLE_VISION=ON
    
    # ENABLE_PADDLE_BACKEND & PADDLEINFERENCE_DIRECTORY为可选项
    export ENABLE_PADDLE_BACKEND=ON
    export PADDLEINFERENCE_DIRECTORY=/Download/paddle_inference_jetson
    
    python setup.py build
    python setup.py bdist_wheel
    
    You can find the built package under FastDeploy/python/dist/ and install with pip install
3 Likes

I tried installing PaddleOCR after installing the supplied wheel for PaddlePaddle, but unfortunately failed.

My environment is as follows:

• Hardware Platform Jetson Xavier AGX
• DeepStream Version 6.2
• JetPack Version 5.1
• TensorRT Version 8.5.2-1+cuda11.4

I donwloaded the pre-built PaddlePaddle wheel and installed it successfully. I used a virtual environment:

$ python3 -m venv paddle

I then cloned the PaddleOCR github repo and tried to install all the requirements:

$ pip3 install -r requirements.txt

I got the following error:

ERROR: Could not find a version that satisfies the requirement paddle2onnx>=1.0.5 (from visualdl->-r requirements.txt (line 8)) (from versions: 0.3.1, 0.3.2, 0.4, 0.5, 0.5.1, 0.6, 0.7, 0.8, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.9.2)
ERROR: No matching distribution found for paddle2onnx>=1.0.5 (from visualdl->-r requirements.txt (line 8))

Could it be because I’m on Jetpack 5.1 instead of 5.02?

I tried to install the missing package paddle2onnx following these steps:

$ git clone https://github.com/PaddlePaddle/Paddle2ONNX.git
$ cd Paddle2ONNX/
$ git submodule init
$ git submodule update
$ python3 setup.py install

but I got the following error:

/usr/lib/aarch64-linux-gnu/libprotobuf.a(extension_set.o): in function google::protobuf::internal::ExtensionSet::MutableString[abi:cxx11](int, unsigned char, google::protobuf::FieldDescriptor const*)': (.text+0xd40c): dangerous relocation: unsupported relocation /usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(extension_set.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE’ which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/aarch64-linux-gnu/libprotobuf.a(extension_set.o): in function google::protobuf::internal::ExtensionSet::AddString[abi:cxx11](int, unsigned char, google::protobuf::FieldDescriptor const*)': (.text+0xd7a0): dangerous relocation: unsupported relocation collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/paddle2onnx.dir/build.make:1893: libpaddle2onnx.so.1.0.7] Error 1 make[1]: *** [CMakeFiles/Makefile2:178: CMakeFiles/paddle2onnx.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 88%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/one_hot_v2.cc.o [ 88%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/p_norm.cc.o [ 89%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/partial_ops.cc.o [ 89%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/pixel_shuffle.cc.o [ 89%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/pow.cc.o [ 90%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/range.cc.o [ 90%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/reduce.cc.o [ 90%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/reshape2.cc.o [ 91%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/scale.cc.o [ 91%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/scatter.cc.o [ 91%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/scatter_nd_add.cc.o [ 92%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/set_value.cc.o [ 92%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/slice.cc.o [ 92%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/split.cc.o [ 93%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/squeeze2.cc.o [ 93%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/stack.cc.o [ 93%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/take_along_axis.cc.o [ 94%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/temporal_shift.cc.o [ 94%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/tile.cc.o [ 94%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/top_k.cc.o [ 95%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/top_k_v2.cc.o [ 95%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/transpose2.cc.o [ 95%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/unique.cc.o [ 96%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/unsqueeze2.cc.o [ 96%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/unstack.cc.o [ 96%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/mapper/tensor/where.cc.o [ 97%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/onnx_reader.cc.o [ 97%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/optimizer/convert_fp32_to_fp16.cc.o [ 97%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/optimizer/paddle2onnx_optimizer.cc.o [ 98%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/paddle_reader.cc.o [ 98%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/paddle2onnx/parser/parser.cc.o [ 98%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/third/optimizer/onnxoptimizer/optimize.cc.o [ 99%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/third/optimizer/onnxoptimizer/pass.cc.o [ 99%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/third/optimizer/onnxoptimizer/pass_manager.cc.o [ 99%] Building CXX object CMakeFiles/paddle2onnx_cpp2py_export.dir/third/optimizer/onnxoptimizer/pass_registry.cc.o [100%] Linking CXX shared module paddle2onnx_cpp2py_export.cpython-38-aarch64-linux-gnu.so /usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE’ which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.o): in function google::protobuf::EnumDescriptor::CopyTo(google::protobuf::EnumDescriptorProto*) const': (.text+0x390c): dangerous relocation: unsupported relocation /usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE’ which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.o): in function google::protobuf::Descriptor::CopyTo(google::protobuf::DescriptorProto*) const': (.text+0xdf9c): dangerous relocation: unsupported relocation /usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE’ which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.o): in function google::protobuf::FileDescriptor::CopyTo(google::protobuf::FileDescriptorProto*) const': (.text+0xe1fc): dangerous relocation: unsupported relocation /usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE’ which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.o): in function google::protobuf::internal::ArenaStringPtr::CreateInstance(google::protobuf::Arena*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const*)': (.text._ZN6google8protobuf8internal14ArenaStringPtr14CreateInstanceEPNS0_5ArenaEPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6google8protobuf8internal14ArenaStringPtr14CreateInstanceEPNS0_5ArenaEPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x110): dangerous relocation: unsupported relocation /usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(int128.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZNKSt5ctypeIcE8do_widenEc’ which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/aarch64-linux-gnu/libprotobuf.a(int128.o): in function google::protobuf::operator<<(std::ostream&, google::protobuf::uint128 const&)': (.text+0xadc): dangerous relocation: unsupported relocation /usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(int128.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZNKSt5ctypeIcE8do_widenEc’ which may bind externally can not be used when making a shared object; recompile with -fPIC
(.text+0xb14): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(int128.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZNKSt5ctypeIcE8do_widenEc' which may bind externally can not be used when making a shared object; recompile with -fPIC (.text+0xb4c): dangerous relocation: unsupported relocation /usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(int128.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZNKSt5ctypeIcE8do_widenEc’ which may bind externally can not be used when making a shared object; recompile with -fPIC
(.text+0xb78): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.pb.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE' which may bind externally can not be used when making a shared object; recompile with -fPIC /usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.pb.o): in function google::protobuf::EnumDescriptorProto::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*)‘:
(.text+0x1d934): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.pb.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE' which may bind externally can not be used when making a shared object; recompile with -fPIC /usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.pb.o): in function google::protobuf::DescriptorProto::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*)’:
(.text+0x1ff5c): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.pb.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE' which may bind externally can not be used when making a shared object; recompile with -fPIC /usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.pb.o): in function google::protobuf::SourceCodeInfo_Location::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*)‘:
(.text+0x209e4): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.pb.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE' which may bind externally can not be used when making a shared object; recompile with -fPIC /usr/lib/aarch64-linux-gnu/libprotobuf.a(descriptor.pb.o): in function google::protobuf::FileDescriptorProto::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*)’:
(.text+0x21650): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(generated_message_reflection.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE' which may bind externally can not be used when making a shared object; recompile with -fPIC /usr/lib/aarch64-linux-gnu/libprotobuf.a(generated_message_reflection.o): in function google::protobuf::internal::GeneratedMessageReflection::AddString(google::protobuf::Message*, google::protobuf::FieldDescriptor const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const’:
(.text+0xc854): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(generated_message_reflection.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE' which may bind externally can not be used when making a shared object; recompile with -fPIC /usr/lib/aarch64-linux-gnu/libprotobuf.a(generated_message_reflection.o): in function void google::protobuf::internal::RepeatedPtrFieldBase::MergeFromInnerLoop<google::protobuf::internal::GenericTypeHandler<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >(void**, void**, int, int)‘:
(.text._ZN6google8protobuf8internal20RepeatedPtrFieldBase18MergeFromInnerLoopINS1_18GenericTypeHandlerINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEvPPvSD_ii[_ZN6google8protobuf8internal20RepeatedPtrFieldBase18MergeFromInnerLoopINS1_18GenericTypeHandlerINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEvPPvSD_ii]+0x7c): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(message.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE' which may bind externally can not be used when making a shared object; recompile with -fPIC /usr/lib/aarch64-linux-gnu/libprotobuf.a(message.o): in function void google::protobuf::internal::RepeatedPtrFieldBase::AddAllocatedSlowWithCopy<google::protobuf::RepeatedPtrField<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >::TypeHandler>(google::protobuf::RepeatedPtrField<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >::TypeHandler::Type*, google::protobuf::Arena*, google::protobuf::Arena*)’:
(.text.ZN6google8protobuf8internal20RepeatedPtrFieldBase24AddAllocatedSlowWithCopyINS0_16RepeatedPtrFieldINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE11TypeHandlerEEEvPNT_4TypeEPNS0_5ArenaESH[ZN6google8protobuf8internal20RepeatedPtrFieldBase24AddAllocatedSlowWithCopyINS0_16RepeatedPtrFieldINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE11TypeHandlerEEEvPNT_4TypeEPNS0_5ArenaESH]+0x1e4): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(extension_set.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE' which may bind externally can not be used when making a shared object; recompile with -fPIC /usr/lib/aarch64-linux-gnu/libprotobuf.a(extension_set.o): in function google::protobuf::internal::ExtensionSet::MutableString[abi:cxx11](int, unsigned char, google::protobuf::FieldDescriptor const*)‘:
(.text+0xd40c): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libprotobuf.a(extension_set.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE' which may bind externally can not be used when making a shared object; recompile with -fPIC /usr/lib/aarch64-linux-gnu/libprotobuf.a(extension_set.o): in function google::protobuf::internal::ExtensionSet::AddString[abi:cxx11](int, unsigned char, google::protobuf::FieldDescriptor const*)’:
(.text+0xd7a0): dangerous relocation: unsupported relocation
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/paddle2onnx_cpp2py_export.dir/build.make:1910: paddle2onnx_cpp2py_export.cpython-38-aarch64-linux-gnu.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:206: CMakeFiles/paddle2onnx_cpp2py_export.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Traceback (most recent call last):
File “setup.py”, line 299, in
setuptools.setup(
File “/home/nvidia/envs/paddle/lib/python3.8/site-packages/setuptools/init.py”, line 145, in setup
return distutils.core.setup(**attrs)
File “/usr/lib/python3.8/distutils/core.py”, line 148, in setup
dist.run_commands()
File “/usr/lib/python3.8/distutils/dist.py”, line 966, in run_commands
self.run_command(cmd)
File “/usr/lib/python3.8/distutils/dist.py”, line 985, in run_command
cmd_obj.run()
File “/home/nvidia/envs/paddle/lib/python3.8/site-packages/setuptools/command/install.py”, line 67, in run
self.do_egg_install()
File “/home/nvidia/envs/paddle/lib/python3.8/site-packages/setuptools/command/install.py”, line 109, in do_egg_install
self.run_command(‘bdist_egg’)
File “/usr/lib/python3.8/distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “/usr/lib/python3.8/distutils/dist.py”, line 985, in run_command
cmd_obj.run()
File “/home/nvidia/envs/paddle/lib/python3.8/site-packages/setuptools/command/bdist_egg.py”, line 172, in run
cmd = self.call_command(‘install_lib’, warn_dir=0)
File “/home/nvidia/envs/paddle/lib/python3.8/site-packages/setuptools/command/bdist_egg.py”, line 158, in call_command
self.run_command(cmdname)
File “/usr/lib/python3.8/distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “/usr/lib/python3.8/distutils/dist.py”, line 985, in run_command
cmd_obj.run()
File “/home/nvidia/envs/paddle/lib/python3.8/site-packages/setuptools/command/install_lib.py”, line 23, in run
self.build()
File “/usr/lib/python3.8/distutils/command/install_lib.py”, line 107, in build
self.run_command(‘build_py’)
File “/usr/lib/python3.8/distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “/usr/lib/python3.8/distutils/dist.py”, line 985, in run_command
cmd_obj.run()
File “setup.py”, line 204, in run
self.run_command(‘cmake_build’)
File “/usr/lib/python3.8/distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “/usr/lib/python3.8/distutils/dist.py”, line 985, in run_command
cmd_obj.run()
File “setup.py”, line 198, in run
subprocess.check_call(build_args)
File “/usr/lib/python3.8/subprocess.py”, line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[’/home/nvidia/.local/bin/cmake’, ‘–build’, ‘.’, ‘–’, ‘-j’, ‘8’]’ returned non-zero exit status 2.