ImportError:attempted relative import with no known parent package

ImportError:attempted relative import with no known parent package

导入包的路径出现问题,再py3里面,默认路径是打开项目的那一层,得自己找出来所在包的路径。
我的是:

from keras.utils.generic_utils import Progbar

添加kears.就成功解决了。

猜你喜欢

转载自blog.csdn.net/kris_paul/article/details/109157411
今日推荐