升级到Python 3.11后丢失的模块

huangapple go评论57阅读模式
英文:

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 是你可以为此目的构建的。

参见:TensorRT Python绑定

你可以修改:使用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.

See: TensorRT Python Bindings

You can modify: Tensorrt on Jetson with python 3.9

By

huangapple
  • 本文由 发表于 2023年3月3日 21:51:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/75627918.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定