简体   繁体   English

Tensorflow> ModuleNotFoundError:没有名为'tensorflow.contrib'的模块

[英]Tensorflow > ModuleNotFoundError: No module named 'tensorflow.contrib'

Have spent a couple days troubleshooting. 花了几天的时间进行故障排除。 This is the complete installation guide for a course I am taking 这是我所修课程的完整安装指南

https://github.com/reigngt09/Pose-Estimation/tree/master/1.%20Pose%20Estimation%20Installation%20Guide https://github.com/reigngt09/Pose-Estimation/tree/master/1.%20Pose%20Estimation%20Installation%20Guide

When I try and enter the following in cmd 当我尝试在cmd中输入以下内容时

$python run_webcam.py --camera video.mp4

I get the following error 我收到以下错误

ModuleNotFoundError: No module named 'tensorflow.contrib'

The offending line is 冒犯的行是

import tensorflow.contrib.tensorrt as trt

Here are my setup specs 这是我的设置规格

Windows 10 Windows 10

Python 3.6.8 的Python 3.6.8

CUDA 10.0 CUDA 10.0

cuDNN v 7.6.2 cuDNN v 7.6.2

Tensorflow (gpu) 1.14.0 Tensorflow(GPU)1.14.0

GeForce GTX 960M GeForce GTX 960M

Driver version 431.60 驱动程序版本431.60

Intel Core i7-6700HQ 2.6 GHz* 英特尔酷睿i7-6700HQ 2.6 GHz *

Any feedback or troubleshooting steps appreciated! 任何反馈或故障排除步骤表示赞赏!

You can try to import the following way: 您可以尝试通过以下方式导入:

from tensorflow.python.compiler.tensorrt import trt_convert as trt

https://docs.nvidia.com/deeplearning/frameworks/tf-trt-user-guide/index.html#usage-example https://docs.nvidia.com/deeplearning/frameworks/tf-trt-user-guide/index.html#usage-example

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ModuleNotFoundError:没有名为“tensorflow.contrib”的模块错误 - ModuleNotFoundError: No module named 'tensorflow.contrib' Error 错误:ModuleNotFoundError:没有名为“tensorflow.contrib”的模块 - Error: ModuleNotFoundError: No module named 'tensorflow.contrib' ModuleNotFoundError:没有名为“tensorflow.contrib”的模块,tensorflow=2.0.0 - ModuleNotFoundError: No module named 'tensorflow.contrib' with tensorflow=2.0.0 ModuleNotFoundError:没有名为“ tensorflow.contrib”的模块; 'tensorflow'不是包 - ModuleNotFoundError: No module named 'tensorflow.contrib'; 'tensorflow' is not a package 没有名为“tensorflow.contrib”的模块 - No module named 'tensorflow.contrib' 没有名为 tensorflow.contrib 的模块 - no module named tensorflow.contrib ModuleNotFoundError:没有名为“tensorflow.contrib”的模块与 jupyter notebook - ModuleNotFoundError: No module named 'tensorflow.contrib' with jupyter notebook 我发现 ModuleNotFoundError: No module named 'tensorflow.contrib' - I found ModuleNotFoundError: No module named 'tensorflow.contrib' 如何修复:“ModuleNotFoundError: No module named 'tensorflow.contrib'” - How to fix: “ModuleNotFoundError: No module named 'tensorflow.contrib'” ModuleNotFoundError:制作聊天机器人时没有名为“tensorflow.contrib”的模块 - ModuleNotFoundError: No module named 'tensorflow.contrib' while making chatbot
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM