This package can be installed as: ``` $ pip install nvidia-pyindex $ pip install onnx-graphsurgeon ``` ########################################################################################### [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
时间: 2024-02-16 13:28:13 浏览: 421
这个错误通常是由于pip缓存或安装源的问题导致的。您可以尝试以下解决方案:
1. 清除pip缓存并重新安装:
```
pip cache purge
pip install nvidia-pyindex
pip install onnx-graphsurgeon
```
2. 修改pip源为国内源,例如使用清华大学的pip源:
```
pip install nvidia-pyindex -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install onnx-graphsurgeon -i https://pypi.tuna.tsinghua.edu.cn/simple/
```
3. 检查您的Python版本是否支持onnx-graphsurgeon,并更新到最新版本:
```
python -V
python -m pip install --upgrade pip
```
如果以上方法都没有解决问题,请提供更多详细信息,以便我们更好地帮助您解决问题。
相关问题
Image export using the "kaleido" engine requires the kaleido package, which can be installed using pip: $ pip install -U kaleido
这个错误是因为在使用`plotly`的`write_image()`函数导出图像时,没有安装`kaleido`包,而`kaleido`是实现图像导出的一种引擎。你可以按照错误提示中的指示,使用以下命令安装`kaleido`包:
```
pip install -U kaleido
```
注意,需要使用`-U`选项来确保`kaleido`包被升级到最新版本。安装完成后,你应该可以成功导出图像了。如果还有其他问题,请提供更多的代码和错误信息,我可以帮助你解决。
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 36, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "C:\Users\ADM\AppData\Local\Temp\pip-install-spql4we8\nvidia-tensorrt_eed04c700b0b4775b19b3e108a414888\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 ``` ########################################################################################### [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.
这个错误是由于安装nvidia-tensorrt包时出现了问题,建议按照错误信息中给出的方式安装nvidia-pyindex和nvidia-tensorrt,即先运行以下命令安装nvidia-pyindex:
```
$ pip install nvidia-pyindex
```
然后再运行以下命令安装nvidia-tensorrt:
```
$ pip install nvidia-tensorrt
```
如果还是无法解决问题,可以尝试升级pip或者使用conda进行安装。
阅读全文