PWhiddy / PokemonRedExperiments

Playing Pokemon Red with Reinforcement Learning
MIT License
7.02k stars 645 forks source link

I can't run this on Windows 11 #109

Open sirkingjamz opened 1 year ago

sirkingjamz commented 1 year ago

Hey PWhiddy I just finished watching your video on YT it was in my suggested feed cuz I love AI and I love what you've done with this experiment and would love to run it as well. I do own a home lab with multiple server blades (running rather outdated hardware) but none of them have any dedicated GPUs in them (besides my plex blade BUT nothing goes on that machine lol) but my main PC has all the GPUs lol well i have a 3080 in it so its worthy of AI training at least that's what i had in mind with it (until i seen raytracing in action)

ANYWAYS I digress, How can I run this on my main machine? do i need a flavor of linux? i seen you used ubuntu (initially i thought it was a mac lol) I know i can use CPU cores but it'll be slower and thats my final plan is to run this on the homelab for months IRL, after i can get it running and make some small changes to the reward system. I'll contribute any and all changes. (OS4L)

Can anyone help me get this running on a windows machine? It may sound like I'm in over my head if i can get a simple python script running on PC but hey... we all start somewhere :) also I don't want to but if necessary I can run this in a VM (if possible) so if all else fails. Hopefully I wont have to resort to that. Anyone with any insight?

My primary issue is getting the darn requirement files needed within the txt you provided and the conda create, both powershell and terminal (in admin mode) both give error codes, (can't find this, can't find that all in red text, ill make an edit or comment here the exact codes when i run it again following the video) I have python 3.10 installed, in fact, i know the txt was "working" because it trigged python to update v24 or v25(.alot.of.numbers) so maybe I don't have something else installed?

Thanks in advance for any and all help, you are all amazing in your own way and i recognize you for it :)

PWhiddy commented 1 year ago

Hey! It is a bit tricker to set up on windows. If you can share the errors, I might be able to give more specific tips. As an alternative, if you use WSL2 the setup might go smoother.

Also feel free to pop into the discord, there's folks there who are more experienced running this on windows than me and they might be able to help!

teknium1 commented 1 year ago

Hey! It is a bit tricker to set up on windows. If you can share the errors, I might be able to give more specific tips. As an alternative, if you use WSL2 the setup might go smoother.

Also feel free to pop into the discord, there's folks there who are more experienced running this on windows than me and they might be able to help!

Doesn't the game require a gui? How would you run it on wsl2?

cloudbosspower commented 1 year ago

You can run it on Windows 11 don't worry, it took me a bit to figure it out but I did it so you can too!! These are the step that I did:

enjoy!

setomage commented 1 year ago

I had the same issue before @sirkingjamz. This was recommended to me, and it worked.

BEFORE you run the prereqs install on windows do the following

You need to download https://visualstudio.microsoft.com/visual-cpp-build-tools/ first.

Next, navigate to "Individual components", find these two 275896178-4d427af4-7d9a-4865-801b-c710c319bea8

275896279-82f5f73c-7b2c-436e-bbad-1e414d5cc6b2

In your case, you should choose the windows SDK that fits your build.

Run your prereq install.

All done from Windows Command Line

This worked for me without issue once i installed the VS Tool and the Windows SDK.

luiscosio commented 1 year ago

I had the same issue before @sirkingjamz. This was recommended to me, and it worked.

BEFORE you run the prereqs install on windows do the following

You need to download https://visualstudio.microsoft.com/visual-cpp-build-tools/ first.

Next, navigate to "Individual components", find these two 275896178-4d427af4-7d9a-4865-801b-c710c319bea8

275896279-82f5f73c-7b2c-436e-bbad-1e414d5cc6b2

In your case, you should choose the windows SDK that fits your build.

Run your prereq install.

All done from Windows Command Line

This worked for me without issue once i installed the VS Tool and the Windows SDK.

This worked for me just fine. The only additional thing I did was create a Python environment.

Also, to install ffpemg, you can just install it from https://community.chocolatey.org/packages/ffmpeg