使用tenorflow和python-not find模块

问题描述 投票:0回答:1

[运行我的python代码时,出现以下错误,

File "run_webcam.py", line 8, in <module>
    from tf_pose.estimator import TfPoseEstimator
  File __init__.py", line 5, in <module>
    from tf_pose.runner import infer, Estimator, get_estimator
  File runner.py", line 8, in <module>
    from tf_pose import eval
  File eval.py", line 14, in <module>
    from tf_pose.networks import model_wh, get_graph_path
  File networks.py", line 6, in <module>
    from tf_pose.network_mobilenet import MobilenetNetwork
  File network_mobilenet.py", line 5, in <module>
    from tf_pose import network_base
  File network_base.py", line 8, in <module>
    import tensorflow.contrib.slim as slim
ModuleNotFoundError: No module named 'tensorflow.contrib'

我认为我需要像使用Tensorflow 2.0.0和python 3.7.3一样以不同的方式导入依赖项。

例如,我如何更改苗条导入才能正常工作?

python python-3.x tensorflow
1个回答
1
投票
conda激活tfpose
© www.soinside.com 2019 - 2024. All rights reserved.