openai / retro

Retro Games in Gym
MIT License
3.35k stars 524 forks source link

I get errors when i try to install gym-retro how do i solve this issues #261

Open flowerboy9 opened 2 years ago

flowerboy9 commented 2 years ago

Issue summary

Whenever i try to run !pip install gym gym-retro i get this huge list of errors that i will attach in a .txt file as the number of errors is alot also i have tried installing "wheel" as well but i still get errors the above mentioned .txt document contains errors that get thrown after installing wheel

System information

flowerboy9 commented 2 years ago

guys can anyone help me out please

incubusnb commented 2 years ago

I get the same error trying to install myself. Using Windows 10 , installed Python 3.10.2 using Chocolatey

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> gym-retro

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
DuneV commented 1 year ago

You have to downgrade the version of pyhton, actually gym-retro module does not have support to pyhton 3.10 or 3.9, https://pypi.org/project/gym-retro/ is just for python 3.8, 3.7 and 3.6, maybe you could use a virtualenv.

Tom-Neverwinter commented 10 months ago

pip install virtualenv then python<version> -m venv <virtual-environment-name> so python3.8 -m gymretro

pip install virtualenv mkdir gymretro cd gymretro virtualenv env env\Scripts\activate

a break down is roughly:

Setting Up a Python Virtual Environment using virtualenv Install virtualenv: virtualenv is a third-party package to create virtual environments. To install it, run:

pip install virtualenv Create a New Directory for Your Project: For this example, we'll name it gymretro:

mkdir gymretro Navigate to Your Project Directory:

cd gymretro Create a Virtual Environment using virtualenv: This command will create a virtual environment named env within your project directory:

virtualenv env Activate the Virtual Environment:

On Windows, run: env\Scripts\activate

kind of a mess going through this myself now