当在python 3.6里运行课程里的强化学习程序时,出现如下出错,怎么办呢?
>>>
= RESTART: D:\work\csdn\tensorflow\DeepLearningFlappyBird\deep_q_network.py =
Traceback (most recent call last):
File "D:\work\csdn\tensorflow\DeepLearningFlappyBird\deep_q_network.py", line 8, in <module>
import cv2
ModuleNotFoundError: No module named 'cv2'
可以看到缺少cv2模块,这时就需要下载opencv模块,可以通过下面命令进行:
D:\AI\sample\tensorforce>pip install opencv-contrib-python
当安装完成之后,就可以了。
1. RPG游戏从入门到精通
2. WiX安装工具的使用