Open collinli2353 opened 2 months ago
The issue is a result of the an incorrect version of pip being used in the build process. see this link for more on that. I don't know how to fix it as far as Dustynv's building scripts. I am suffering the same error. https://stackoverflow.com/questions/77364550/attributeerror-module-pkgutil-has-no-attribute-impimporter-did-you-mean
@collinli2353, if what @Kerkuil-Geoglossum wrote is true, you should read how to set up the correct Python version before building the image. This should resolve your issues.
Setup:
export PYTHON_VERSION=3.12
./build.sh --name=my_container build-essential cmake cuda cudnn gstreamer numpy onnx opencv protobuf:cpp pycuda python pytorch tensorrt tensorflow2 torch2trt torchvision
What works
./build.sh --name=my_container build-essential cmake cuda cudnn gstreamer numpy onnx opencv protobuf:cpp pycuda python pytorch tensorrt tensorflow2 torch2trt torchvision
works but it installs for python 3.8Error
error.txt
Shortened version below: