Setting up OpenAI Gym on Windows 10












2















I'm trying to set up OpenAI's gym on Windows 10, so that I can do machine learning with Atari games.



On PyCharm I've successfully installed gym using Settings > Project Interpreter. But when I try to set up a breakout environment (or any other Atari game) using:



import gym
env = gym.make('BreakoutDeterministic-v4')


I get the following error:



ImportError: No module named 'atari_py'
...
HINT: you can install Atari dependencies by running 'pip install gym[atari]'


So I tried the command 'pip install gym[atari]' in the PyCharm terminal, and got the error:



Unable to execute 'make build -C atari_py/ale_interface -j 11'. HINT: are you sure `make` is installed?
error: [WinError 2] The system cannot find the file specified


I tried installing 'make' from http://gnuwin32.sourceforge.net/packages/make.htm, and tried some other methods, but this didn't solve the problem.



I've also tried 'pip install atari_py', which runs fine but also doesn't solve the problem.



Any ideas/help would be much appreciated. I'm new to Python and PyCharm, so I apologise if any of this was unclear. Please let me know if there's any more info I can provide to help.



Thanks in advance










share|improve this question























  • Possible duplicate of OpenAI Gym Atari on Windows

    – Nikita Kniazev
    Dec 2 '18 at 19:51
















2















I'm trying to set up OpenAI's gym on Windows 10, so that I can do machine learning with Atari games.



On PyCharm I've successfully installed gym using Settings > Project Interpreter. But when I try to set up a breakout environment (or any other Atari game) using:



import gym
env = gym.make('BreakoutDeterministic-v4')


I get the following error:



ImportError: No module named 'atari_py'
...
HINT: you can install Atari dependencies by running 'pip install gym[atari]'


So I tried the command 'pip install gym[atari]' in the PyCharm terminal, and got the error:



Unable to execute 'make build -C atari_py/ale_interface -j 11'. HINT: are you sure `make` is installed?
error: [WinError 2] The system cannot find the file specified


I tried installing 'make' from http://gnuwin32.sourceforge.net/packages/make.htm, and tried some other methods, but this didn't solve the problem.



I've also tried 'pip install atari_py', which runs fine but also doesn't solve the problem.



Any ideas/help would be much appreciated. I'm new to Python and PyCharm, so I apologise if any of this was unclear. Please let me know if there's any more info I can provide to help.



Thanks in advance










share|improve this question























  • Possible duplicate of OpenAI Gym Atari on Windows

    – Nikita Kniazev
    Dec 2 '18 at 19:51














2












2








2








I'm trying to set up OpenAI's gym on Windows 10, so that I can do machine learning with Atari games.



On PyCharm I've successfully installed gym using Settings > Project Interpreter. But when I try to set up a breakout environment (or any other Atari game) using:



import gym
env = gym.make('BreakoutDeterministic-v4')


I get the following error:



ImportError: No module named 'atari_py'
...
HINT: you can install Atari dependencies by running 'pip install gym[atari]'


So I tried the command 'pip install gym[atari]' in the PyCharm terminal, and got the error:



Unable to execute 'make build -C atari_py/ale_interface -j 11'. HINT: are you sure `make` is installed?
error: [WinError 2] The system cannot find the file specified


I tried installing 'make' from http://gnuwin32.sourceforge.net/packages/make.htm, and tried some other methods, but this didn't solve the problem.



I've also tried 'pip install atari_py', which runs fine but also doesn't solve the problem.



Any ideas/help would be much appreciated. I'm new to Python and PyCharm, so I apologise if any of this was unclear. Please let me know if there's any more info I can provide to help.



Thanks in advance










share|improve this question














I'm trying to set up OpenAI's gym on Windows 10, so that I can do machine learning with Atari games.



On PyCharm I've successfully installed gym using Settings > Project Interpreter. But when I try to set up a breakout environment (or any other Atari game) using:



import gym
env = gym.make('BreakoutDeterministic-v4')


I get the following error:



ImportError: No module named 'atari_py'
...
HINT: you can install Atari dependencies by running 'pip install gym[atari]'


So I tried the command 'pip install gym[atari]' in the PyCharm terminal, and got the error:



Unable to execute 'make build -C atari_py/ale_interface -j 11'. HINT: are you sure `make` is installed?
error: [WinError 2] The system cannot find the file specified


I tried installing 'make' from http://gnuwin32.sourceforge.net/packages/make.htm, and tried some other methods, but this didn't solve the problem.



I've also tried 'pip install atari_py', which runs fine but also doesn't solve the problem.



Any ideas/help would be much appreciated. I'm new to Python and PyCharm, so I apologise if any of this was unclear. Please let me know if there's any more info I can provide to help.



Thanks in advance







python pycharm openai-gym






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 20 '18 at 18:13









Paul KPaul K

112




112













  • Possible duplicate of OpenAI Gym Atari on Windows

    – Nikita Kniazev
    Dec 2 '18 at 19:51



















  • Possible duplicate of OpenAI Gym Atari on Windows

    – Nikita Kniazev
    Dec 2 '18 at 19:51

















Possible duplicate of OpenAI Gym Atari on Windows

– Nikita Kniazev
Dec 2 '18 at 19:51





Possible duplicate of OpenAI Gym Atari on Windows

– Nikita Kniazev
Dec 2 '18 at 19:51












1 Answer
1






active

oldest

votes


















1














The gym documentation https://github.com/openai/gym#installing-everything says that for using all the environments, you should have installed dependencies through pip install 'gym[all]'. Can you run this command preferably through the terminal and see if it works?






share|improve this answer
























  • Thanks CS101. I ran pip install gym[all], both via the PyCharm terminal, and by setting up a virtual environment on Anaconda Promt. Using both methods I got the following error: Unable to execute 'make build -C atari_py/ale_interface -j 11'. HINT: are you sure 'make' is installed?. I noticed from the gym documentation you linked to that they only give installation instructions for OSX and Ubuntu, and there's no mention of Windows. Perhaps I should just install and start using Ubuntu?

    – Paul K
    Nov 21 '18 at 10:14













  • @PaulK, I have been using gym on my windows 7 and windows 10 laptops since beginning of the year. I do not use pycharm. I simply opened terminal and used pip install gym for python 2.7/ pip3 install gym for python 3.6. You can install gym on windows I think. What I believe does not work is dependencies needed for using Atari or Mujoco. I am not aware of the dependencies since I ahve never used them. But pip install through terminal looks like a clean install to me. You can uninstall the current gym and see if reinstalling by my method works.

    – CS101
    Nov 21 '18 at 16:00








  • 1





    I had previously found a suggestion to run 'pip install --no-index -f github.com/Kojoley/atari-py/releases atari_py' (see here stackoverflow.com/questions/42605769/…). This didn't work originally. But after much fiddling, this works! Thanks for your help @CS101

    – Paul K
    Nov 21 '18 at 17:36













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53399077%2fsetting-up-openai-gym-on-windows-10%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














The gym documentation https://github.com/openai/gym#installing-everything says that for using all the environments, you should have installed dependencies through pip install 'gym[all]'. Can you run this command preferably through the terminal and see if it works?






share|improve this answer
























  • Thanks CS101. I ran pip install gym[all], both via the PyCharm terminal, and by setting up a virtual environment on Anaconda Promt. Using both methods I got the following error: Unable to execute 'make build -C atari_py/ale_interface -j 11'. HINT: are you sure 'make' is installed?. I noticed from the gym documentation you linked to that they only give installation instructions for OSX and Ubuntu, and there's no mention of Windows. Perhaps I should just install and start using Ubuntu?

    – Paul K
    Nov 21 '18 at 10:14













  • @PaulK, I have been using gym on my windows 7 and windows 10 laptops since beginning of the year. I do not use pycharm. I simply opened terminal and used pip install gym for python 2.7/ pip3 install gym for python 3.6. You can install gym on windows I think. What I believe does not work is dependencies needed for using Atari or Mujoco. I am not aware of the dependencies since I ahve never used them. But pip install through terminal looks like a clean install to me. You can uninstall the current gym and see if reinstalling by my method works.

    – CS101
    Nov 21 '18 at 16:00








  • 1





    I had previously found a suggestion to run 'pip install --no-index -f github.com/Kojoley/atari-py/releases atari_py' (see here stackoverflow.com/questions/42605769/…). This didn't work originally. But after much fiddling, this works! Thanks for your help @CS101

    – Paul K
    Nov 21 '18 at 17:36


















1














The gym documentation https://github.com/openai/gym#installing-everything says that for using all the environments, you should have installed dependencies through pip install 'gym[all]'. Can you run this command preferably through the terminal and see if it works?






share|improve this answer
























  • Thanks CS101. I ran pip install gym[all], both via the PyCharm terminal, and by setting up a virtual environment on Anaconda Promt. Using both methods I got the following error: Unable to execute 'make build -C atari_py/ale_interface -j 11'. HINT: are you sure 'make' is installed?. I noticed from the gym documentation you linked to that they only give installation instructions for OSX and Ubuntu, and there's no mention of Windows. Perhaps I should just install and start using Ubuntu?

    – Paul K
    Nov 21 '18 at 10:14













  • @PaulK, I have been using gym on my windows 7 and windows 10 laptops since beginning of the year. I do not use pycharm. I simply opened terminal and used pip install gym for python 2.7/ pip3 install gym for python 3.6. You can install gym on windows I think. What I believe does not work is dependencies needed for using Atari or Mujoco. I am not aware of the dependencies since I ahve never used them. But pip install through terminal looks like a clean install to me. You can uninstall the current gym and see if reinstalling by my method works.

    – CS101
    Nov 21 '18 at 16:00








  • 1





    I had previously found a suggestion to run 'pip install --no-index -f github.com/Kojoley/atari-py/releases atari_py' (see here stackoverflow.com/questions/42605769/…). This didn't work originally. But after much fiddling, this works! Thanks for your help @CS101

    – Paul K
    Nov 21 '18 at 17:36
















1












1








1







The gym documentation https://github.com/openai/gym#installing-everything says that for using all the environments, you should have installed dependencies through pip install 'gym[all]'. Can you run this command preferably through the terminal and see if it works?






share|improve this answer













The gym documentation https://github.com/openai/gym#installing-everything says that for using all the environments, you should have installed dependencies through pip install 'gym[all]'. Can you run this command preferably through the terminal and see if it works?







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 21 '18 at 6:34









CS101CS101

316




316













  • Thanks CS101. I ran pip install gym[all], both via the PyCharm terminal, and by setting up a virtual environment on Anaconda Promt. Using both methods I got the following error: Unable to execute 'make build -C atari_py/ale_interface -j 11'. HINT: are you sure 'make' is installed?. I noticed from the gym documentation you linked to that they only give installation instructions for OSX and Ubuntu, and there's no mention of Windows. Perhaps I should just install and start using Ubuntu?

    – Paul K
    Nov 21 '18 at 10:14













  • @PaulK, I have been using gym on my windows 7 and windows 10 laptops since beginning of the year. I do not use pycharm. I simply opened terminal and used pip install gym for python 2.7/ pip3 install gym for python 3.6. You can install gym on windows I think. What I believe does not work is dependencies needed for using Atari or Mujoco. I am not aware of the dependencies since I ahve never used them. But pip install through terminal looks like a clean install to me. You can uninstall the current gym and see if reinstalling by my method works.

    – CS101
    Nov 21 '18 at 16:00








  • 1





    I had previously found a suggestion to run 'pip install --no-index -f github.com/Kojoley/atari-py/releases atari_py' (see here stackoverflow.com/questions/42605769/…). This didn't work originally. But after much fiddling, this works! Thanks for your help @CS101

    – Paul K
    Nov 21 '18 at 17:36





















  • Thanks CS101. I ran pip install gym[all], both via the PyCharm terminal, and by setting up a virtual environment on Anaconda Promt. Using both methods I got the following error: Unable to execute 'make build -C atari_py/ale_interface -j 11'. HINT: are you sure 'make' is installed?. I noticed from the gym documentation you linked to that they only give installation instructions for OSX and Ubuntu, and there's no mention of Windows. Perhaps I should just install and start using Ubuntu?

    – Paul K
    Nov 21 '18 at 10:14













  • @PaulK, I have been using gym on my windows 7 and windows 10 laptops since beginning of the year. I do not use pycharm. I simply opened terminal and used pip install gym for python 2.7/ pip3 install gym for python 3.6. You can install gym on windows I think. What I believe does not work is dependencies needed for using Atari or Mujoco. I am not aware of the dependencies since I ahve never used them. But pip install through terminal looks like a clean install to me. You can uninstall the current gym and see if reinstalling by my method works.

    – CS101
    Nov 21 '18 at 16:00








  • 1





    I had previously found a suggestion to run 'pip install --no-index -f github.com/Kojoley/atari-py/releases atari_py' (see here stackoverflow.com/questions/42605769/…). This didn't work originally. But after much fiddling, this works! Thanks for your help @CS101

    – Paul K
    Nov 21 '18 at 17:36



















Thanks CS101. I ran pip install gym[all], both via the PyCharm terminal, and by setting up a virtual environment on Anaconda Promt. Using both methods I got the following error: Unable to execute 'make build -C atari_py/ale_interface -j 11'. HINT: are you sure 'make' is installed?. I noticed from the gym documentation you linked to that they only give installation instructions for OSX and Ubuntu, and there's no mention of Windows. Perhaps I should just install and start using Ubuntu?

– Paul K
Nov 21 '18 at 10:14







Thanks CS101. I ran pip install gym[all], both via the PyCharm terminal, and by setting up a virtual environment on Anaconda Promt. Using both methods I got the following error: Unable to execute 'make build -C atari_py/ale_interface -j 11'. HINT: are you sure 'make' is installed?. I noticed from the gym documentation you linked to that they only give installation instructions for OSX and Ubuntu, and there's no mention of Windows. Perhaps I should just install and start using Ubuntu?

– Paul K
Nov 21 '18 at 10:14















@PaulK, I have been using gym on my windows 7 and windows 10 laptops since beginning of the year. I do not use pycharm. I simply opened terminal and used pip install gym for python 2.7/ pip3 install gym for python 3.6. You can install gym on windows I think. What I believe does not work is dependencies needed for using Atari or Mujoco. I am not aware of the dependencies since I ahve never used them. But pip install through terminal looks like a clean install to me. You can uninstall the current gym and see if reinstalling by my method works.

– CS101
Nov 21 '18 at 16:00







@PaulK, I have been using gym on my windows 7 and windows 10 laptops since beginning of the year. I do not use pycharm. I simply opened terminal and used pip install gym for python 2.7/ pip3 install gym for python 3.6. You can install gym on windows I think. What I believe does not work is dependencies needed for using Atari or Mujoco. I am not aware of the dependencies since I ahve never used them. But pip install through terminal looks like a clean install to me. You can uninstall the current gym and see if reinstalling by my method works.

– CS101
Nov 21 '18 at 16:00






1




1





I had previously found a suggestion to run 'pip install --no-index -f github.com/Kojoley/atari-py/releases atari_py' (see here stackoverflow.com/questions/42605769/…). This didn't work originally. But after much fiddling, this works! Thanks for your help @CS101

– Paul K
Nov 21 '18 at 17:36







I had previously found a suggestion to run 'pip install --no-index -f github.com/Kojoley/atari-py/releases atari_py' (see here stackoverflow.com/questions/42605769/…). This didn't work originally. But after much fiddling, this works! Thanks for your help @CS101

– Paul K
Nov 21 '18 at 17:36




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53399077%2fsetting-up-openai-gym-on-windows-10%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

How to fix TextFormField cause rebuild widget in Flutter