我这样做是为了学习DQN
。我确定我已经安装了keras
,因为当我输入命令提示符时,pip install keras
我得到的只是Requirement is Already Satisfied
.
我的代码:
from dqn_agent import DQNAgent
from tetris import Tetris
from datetime import datetime
from statistics import mean, median
import random
from logs import CustomTensorBoard
from tqdm import tqdm
得到错误:
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-1d98c5613f54> in <module>
----> 1 from dqn_agent import DQNAgent
2 from tetris import Tetris
3 from datetime import datetime
4 from statistics import mean, median
5 import random
ModuleNotFoundError: No module named 'dqn_agent'