我试图使用自己的数据集运行Tensorflows,同时在GitHub/Youtube上运行海沃森教程。
我在运行Windows。
我想运行model_test.py脚本(在我的windows终端-CMD上),但是它只返回典型的:
Traceback (most recent call last):
File "model_test.py", line 21, in <module>
from deeplab import common
ModuleNotFoundError: No module named 'deeplab'我已经安装了所有依赖项,包括tensorflow:
Name: tensorflow
Version: 2.3.1我还包括(经常在“路径”环境中)目录:
C:\Users\Name\Desktop\models-master\models-master\research\deeplab\
C:\Users\Name\Desktop\models-master\models-master\research\slim\
C:\Users\Name\Desktop\models-master\models-master\research\但当我决定重新运行model_test.py时,没有什么效果。
因此,我决定临时设置一个名为PYTHONPATH的环境变量,内容如下(如本教程所述):
# Making sure I am in the models\research directory (as per the tutorial)
# In my case it is models-master\research directory
export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim # --> macOS version
set PYTHONPATH=%PYTHONPATH%;%cd%;%cd%/slim # --> Windows version又一次什么都没起作用..。我已经没有选择和希望了。
我在这里做错什么了吗??我是不是漏掉了某个文件夹?
任何帮助都将不胜感激。
发布于 2020-12-03 10:56:24
在执行之前,您需要从模型/研究存储库(cd ./models/research )开始编程。
https://datascience.stackexchange.com/questions/86229
复制相似问题