python - 如何在 Python 中从配置中导入标志时修复“ImportError: cannot import name 'flags'”
问题描述
我在播放以下代码时遇到问题 https://github.com/zengguodong/iSeg_Bern_IPMI 问题在第 6 行。播放时会出现导入错误:
from config import FLAGS
ImportError: cannot import name 'FLAGS'
但是当我安装'FLAGS'时,它给出了
(tensorflow) C:\Users\zh>pip install FLAGS
Requirement already satisfied: FLAGS in d:\anaconda\envs\tensorflow\lib\site-packages (0.0.1.2)