1 NameError: name 'os' is not defined
只需代码开头加上:import os 问题就可以得到解决,但是有时写上去还是不管用,或许改变个位置就成功了,别问我为什么,我自己也很迷(使用的是python3,灰色部分maybe表示此处应该使用python3导入的方法)
2 Cannot import tensorflow
python2没有,要使用python3解析器才可以
3 安装cv2,skimage(scikit-image)模块的方法 需要手动安装
https://blog.csdn.net/totti31/article/details/84667345
python -m pip install -U --force-reinstall pip
6 “ curses is not supported on this machine (please install/reinstall curses for an optimal experience)”问题
先到下面的网站上下载与电脑里安装的Python对应的curses.whl:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses
pip install XX --upgrade
或者格式:pip install --target=目标路径 工具包名字
pip install --target=/home/wen/anaconda2/lib/python2.7/site-packages keras_utilities(指定目标)