英文:
Modules lost upgrading to python 3.11
问题
我刚刚安装了Python 3.11并注意到缺少模块。
我正在使用ARM,NVIDIA Jetson Xavier AGX,Jetpack 5.0.2自带的是Ubuntu 20.04和Python 3.8。
在Python 3.8中,我可以运行import tensorrt
,但在Python 3.11中,我收到No module named "tensorrt"
的错误。
我尝试过:
python3.8 -m pip freeze > requirements.txt
python3.11 -m pip install -r requirements.txt
但我很快收到以下错误:
ERROR: Could not find a version that satisfies the requirement tensorrt==8.4.1.5 (from versions: 0.0.1.dev5, 0.0.1)
ERROR: No matching distribution found for tensorrt==8.4.1.5
Python 3.11能否使用Python 3.8的模块,还是我需要使用正确的分发方式来安装它们?
英文:
I just installed python 3.11 and noticed modules are missing.
I am working on ARM, NVIDIA Jetson Xavier AGX, Jetpack 5.0.2 it comes with ubuntu 20.04 and python 3.8.
In python 3.8 I can run import tensorrt
, but in python 3.11 I get No module named "tensorrt"
I tried
python3.8 -m pip freeze > requirements.txt
python3.11 -m pip install -r requirements.txt
But I quickly get:
ERROR: Could not find a version that satisfies the requirement tensorrt==8.4.1.5 (from versions: 0.0.1.dev5, 0.0.1)
ERROR: No matching distribution found for tensorrt==8.4.1.5
Can python 3.11 use python3.8 modules, or do I have to install them with correct distribution?
答案1
得分: 0
不,pybinding for 3.11 是你可以为此目的构建的。
你可以修改:使用Python 3.9在Jetson上的TensorRT
通过
- 安装Python 3.11 而不是编译它
- 将TensorRT 8.0 替换为8.4
- 将cmake 3.15.5 替换为3.25.2
英文:
No,
pybinding for 3.11 is something you can build for this purpose.
You can modify: Tensorrt on Jetson with python 3.9
By
- Installing python 3.11 rather than compiling it
- Swap TensorRT 8.0 with 8.4
- Swap cmake 3.15.5 with 3.25.2
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论