I get errors when i try to install gym-retro how do i solve this issues
flowerboy9 opened this issue · 4 comments
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
- Operating system - windows 10
- Python version - 3.9.4
errors_for_gym-retro.txt
guys can anyone help me out please
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.
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.
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