我试图运行Tensorflow模型,我正在使用Python 3.6和PyCharm(pip(。我收到此错误:
Use the retry module or similar alternatives.
Traceback (most recent call last):
File "/Users/erdogan/Desktop/tens/model/research/object_detection/builders/model_builder_test.py", line 21, in <module>
from object_detection.builders import model_builder
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/builders/model_builder.py", line 30, in <module>
from object_detection.models import faster_rcnn_inception_resnet_v2_feature_extractor as frcnn_inc_res
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/models/faster_rcnn_inception_resnet_v2_feature_extractor.py", line 28, in <module>
from nets import inception_resnet_v2
ModuleNotFoundError: No module named 'nets'
我用过这个:
Vural-MacBook-Pro:research erdogan$ export PYTHONPATH=/Users/erdogan/Desktop/tens/model/research/slim:$PYTHONPAT
但它没有奏效。我还检查了我的路径:
Vural-MacBook-Pro:research erdogan$ echo $PYTHONPATH
我得到了这个:
/Users/erdogan/Desktop/tens/model/research/slim:
尝试将
nets 文件夹从 slim 复制到安装目录。裁判