PWhiddy / PokemonRedExperiments

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

cant install torch #133

Closed Milanorxd closed 1 year ago

Milanorxd commented 1 year ago

when i try to run the py code run_pretrained_interactive.py, on a2c.py for some reason it cant import torch and I tried different ways to install it such as using pip (ERROR: Could not find a version that satisfies the requirement torch (from versions: none) / ERROR: No matching distribution found for torch) and downloading directly from pytorch github (doesn´t work for some reason). I´m stuck at this problem and i feel that i am super close to actually running this thing. BTW i´m using a macbook pro m1, if that helps at all.

Screen Shot 2023-11-02 at 18 34 18 Screen Shot 2023-11-02 at 18 37 24
PWhiddy commented 1 year ago

Try running pip3 install -r requirements.txt and let me know how that goes.

Milanorxd commented 1 year ago

Try running pip3 install -r requirements.txt and let me know how that goes.

I run it before the problem I had and for some reason it went without problems, now this appears:

Screen Shot 2023-11-02 at 18 55 12 Screen Shot 2023-11-02 at 18 55 32
PWhiddy commented 1 year ago

Is there more output above that error?

Milanorxd commented 1 year ago

Is there more output above that error?

now that I remember correctly I also had trouble while trying to install the requirements, stable_baselines3 had problems with torch i think , i literally had troubles almost every step of the way lol, the emulator was a pain to install now this,

Screen Shot 2023-11-02 at 19 22 19
PWhiddy commented 1 year ago

For the pretrained model to model to work, you need specific versions of certain packages, so I don’t recommend trying to individually install the latest version by doing “pip install X”. Please make sure you’re using python 3.10 or 11, and try the pip3 install -r requirements.txt. If possible a clean venv or conda env may help too.

Milanorxd commented 1 year ago

For the pretrained model to model to work, you need specific versions of certain packages, so I don’t recommend trying to individually install the latest version by doing “pip install X”. Please make sure you’re using python 3.10 or 11, and try the pip3 install -r requirements.txt. If possible a clean venv or conda env may help too.

so I downgraded to python3.11 and installed the requirements, I tried to run the run_pretrained_interactive.py and this happened.

Screen Shot 2023-11-02 at 19 49 57
PWhiddy commented 1 year ago

nice! do you have homebrew? if so you can install it with brew install ffmpeg. If not you can look up how to install ffmpeg and add it to path on macos.

Milanorxd commented 1 year ago

nice! do you have homebrew? if so you can install it with brew install ffmpeg. If not you can look up how to install ffmpeg and add it to path on macos.

TYSM! I finally was able to do it after installing homebrew and instaling ffmpeg

Screen Shot 2023-11-02 at 20 13 37
PWhiddy commented 1 year ago

yay! glad :)