我已经安装了tensorrt 3.0.4,但是当我尝试使用tensorrt 3.0.4安装tensorflow时,我得到了以下结果:
uff 0.2.0 requires argparse>=1.4.0, which is not installed.
tensorrt 3.0.4 requires argparse>=1.4.0, which is not installed.但奇怪的是,pip show argparse会产生以下输出:
Name: argparse
Version: 1.4.0
Summary: Python command-line parsing library
Home-page: https://github.com/ThomasWaldmann/argparse/
Author: Thomas Waldmann
Author-email: tw@waldmann-edv.de
License: Python Software Foundation License
Location: /root/env/py3/lib/python3.5/site-packages
Requires:
Required-by: uff, tensorrt似乎tensorrt和uff找不到argpase,而他们也在root/env/py3/lib/python3.5/site-packages中
$pip show tensorrt
Name: tensorrt
Version: 3.0.4
Summary: Python API for TensorRT, a high-performance deep learning inference optimizer and runtime for deep learning applications.
Home-page: https://developer.nvidia.com/tensorrt
Author: cudatools
Author-email: cudatools@nvidia.com
License: NVIDIA Software License
Location: /root/env/py3/lib/python3.5/site-packages
Requires: enum34, future, protobuf, argparse, numpy, pycuda, Flask, pillow
Required-by:我怎么才能修复它呢?
发布于 2018-04-06 21:40:09
问题已解决。不要使用大于9.0的pip版本。
https://stackoverflow.com/questions/49692919
复制相似问题