OSerror [Winerror 126]找不到指定的模块 [英] OSerror [Winerror 126] the specified module could not be found

查看:7098
本文介绍了OSerror [Winerror 126]找不到指定的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做强化学习. 运行Atari示例会导致OSerror.

I am doing reinforcement learning. Running the Atari example causes an OSerror.

我使用Win 10 和tensorflow 1.3,keras 2.2.2

I use Win 10 and tensorflow 1.3, keras 2.2.2

import gym
import numpy as np
from keras.models import Sequential
from keras.layers import Dense, Reshape, Flatten
from keras.optimizers import Adam
from keras.layers.convolutional import Convolution2D

File "C:\Users\Lim\Anaconda3\lib\ctypes\__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)

为什么这是个问题?问题出在哪里?

Why is this a problem? Where is the problem?

OSerror [Winerror 126] the specified module could not be found

我已经研究过了,但是我没有一个好的答案.

I've looked into this, but I did not have a good answer.

推荐答案

目前Atari环境尚无Windows支持

There is no windows support for the Atari environments at the moment

在此线程中查看评论:

See the comment in this thread:

我知道目前有很多人在Windows上使用Gym.我认为在这一点上,它大部分都可以工作(可能有Atari例外,尽管我认为这也不太难). 当前在OpenAI上没有任何Windows用户.此线程上是否有人有兴趣进行工作以在Windows上完全支持Gym(这主要涉及设置CI服务,并确保我们当前的功能确实在其中起作用)?很高兴提供指导.

I know a non-trivial number of people are currently using Gym on Windows. I think at this point, it mostly works (with the possible exception of Atari, though I think that too may be not too hard). We don't have any Windows users at OpenAI currently. Is anyone on this thread interested in doing the work to get Gym fully supported on Windows (which mostly involves getting a CI service set up, and making sure our current functionality actually works there)? Happy to provide guidance.

如果您的要求允许您这样做,则只需切换环境,经典的控制环境就可以像在Windows下一样运行:

If your requirements allow you to do so, just switch environments, classic control environments work like a charm under windows:

env = gym.make('CartPole-v1')

这篇关于OSerror [Winerror 126]找不到指定的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆