0

我已经安装了 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 showargparse 产生以下输出:

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

似乎找不到 argpase,而它们tensorrt也在uffroot/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:

我该如何解决?

4

1 回答 1

0

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

于 2018-04-06T13:40:08.580 回答