张量没有找到argparse

时间:2018-04-06 12:33:51

标签: tensorflow tensorrt

我已经安装了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

似乎tensorrtuff无法找到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:

我该如何解决?

1 个答案:

答案 0 :(得分:0)

问题已解决。不要使用pip版本> 9.0。