首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >tensorrt找不到argparse

tensorrt找不到argparse
EN

Stack Overflow用户
提问于 2018-04-06 20:33:51
回答 1查看 266关注 0票数 0

我已经安装了tensorrt 3.0.4,但是当我尝试使用tensorrt 3.0.4安装tensorflow时,我得到了以下结果:

代码语言:javascript
复制
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会产生以下输出:

代码语言:javascript
复制
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

代码语言:javascript
复制
$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:

我怎么才能修复它呢?

EN

回答 1

Stack Overflow用户

发布于 2018-04-06 21:40:09

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49692919

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档