windows 我无法找出pip tensorrt第17行错误

wnavrhmk  于 2022-11-26  发布在  Windows
关注(0)|答案(1)|浏览(172)

我不能以任何方式安装它,我想知道什么可能是错误的原因.
我安装了C++和其他必要的东西
我使用的是windows 11
我安装了pip install nvidia-pyindex没有问题。和tensorrt一样,我不能安装pycuda库,我得到同样的错误

\`
(base) PS C:\\Users\\byara\> pip install nvidia-tensorrt
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting nvidia-tensorrt
Downloading nvidia-tensorrt-0.0.1.dev5.tar.gz (7.9 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─\> \[17 lines of output\]
Traceback (most recent call last):
File "\<string\>", line 2, in \<module\>
File "\<pip-setuptools-caller\>", line 34, in \<module\>
File "C:\\Users\\byara\\AppData\\Local\\Temp\\pip-install-ak3sxwfw\\nvidia-tensorrt_a7512906bd3241728853c0e6a10bf9d4\\setup.py", line 150, in \<module\>
raise RuntimeError(open("ERROR.txt", "r").read())
RuntimeError:
\###########################################################################################
The package you are trying to install is only a placeholder project on PyPI.org repository.
This package is hosted on NVIDIA Python Package Index.

     This package can be installed as:
    `
     $ pip install nvidia-pyindex
     $ pip install nvidia-tensorrt
    `your text`
     ###########################################################################################
   
     [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─\> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
\`
wwwo4jvm

wwwo4jvm1#

TensorRT无法通过pip在Windows上使用。您可以通过查看PyPI中的wheel文件来验证这一点。最新版本的所有wheel文件都适用于Linux。因此,尝试在Windows上安装时,将选择以前的版本,即占位符包。这些版本在所有操作系统上都只会打印您看到的消息。
documentation
zip文件是当前Windows的唯一选项。
您可以在Zip File Installation中找到有关如何安装的说明。

相关问题