安装TensorRT时出现ModuleNotFoundError: No module named ‘packaging‘解决方案

目录

1 问题

2 原因

3 解决方案


1 问题

安装TensorRT时出现错误:ModuleNotFoundError: No module named 'packaging'。

2 原因

缺少packaging库。

3 解决方案

终端输入:

pip install packaging

如果这时候出现错误:ERROR: Could not install packages due to an OSError: Missing dependencies for SOCKS support。终端输入:

unset all_proxy
unset ALL_PROXY
pip install packaging

猜你喜欢

转载自blog.csdn.net/weixin_46133643/article/details/125373031
今日推荐