小编Ziy*_*lan的帖子

无法加载本机TensorFlow运行时

运行该代码后出现该错误。

import gym
import random
import numpy as np
import tflearn
from tflearn.layers.core import input_data, dropout, fully_connected
from tflearn.layers.estimator import regression
from statistics import mean, median
from collections import Counter

LR = 1e-3
env = gym.make('CartPole-v0')
env.reset()
goal_steps = 500
score_requirement = 50
initial_games = 10000


def some_random_games_first():
   for episode in range(5):
       env.reset()
       for t in range(goal_steps):
            env.render()
            action = env.action_space.sample()
            observation, reward, done, info = env.step(action)

            if done:
                break


some_random_games_first()
Run Code Online (Sandbox Code Playgroud)

这是错误。我应该怎么做才能使其正常工作。

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/__init__.py", line …
Run Code Online (Sandbox Code Playgroud)

python python-3.x tensorflow

5
推荐指数
0
解决办法
3841
查看次数

标签 统计

python ×1

python-3.x ×1

tensorflow ×1