vietnh1009 / Super-mario-bros-PPO-pytorch

Proximal Policy Optimization (PPO) algorithm for Super Mario Bros
MIT License
1.09k stars 206 forks source link

gym conflict #15

Open allendred opened 3 years ago

allendred commented 3 years ago

base ❯ pip install nes_py-8.1.2-cp37-cp37m-macosx_10_15_x86_64.whl Processing ./nes_py-8.1.2-cp37-cp37m-macosx_10_15_x86_64.whl Requirement already satisfied: numpy>=1.18.5 in /Users/etsiva/anaconda3/lib/python3.7/site-packages (from nes-py==8.1.2) (1.19.2) Requirement already satisfied: tqdm>=4.32.2 in /Users/etsiva/anaconda3/lib/python3.7/site-packages (from nes-py==8.1.2) (4.49.0) Collecting gym>=0.17.2 Using cached gym-0.18.0-py3-none-any.whl Requirement already satisfied: numpy>=1.18.5 in /Users/etsiva/anaconda3/lib/python3.7/site-packages (from nes-py==8.1.2) (1.19.2) Requirement already satisfied: Pillow<=7.2.0 in /Users/etsiva/anaconda3/lib/python3.7/site-packages (from gym>=0.17.2->nes-py==8.1.2) (7.2.0) Requirement already satisfied: cloudpickle<1.7.0,>=1.2.0 in /Users/etsiva/anaconda3/lib/python3.7/site-packages (from gym>=0.17.2->nes-py==8.1.2) (1.6.0) Requirement already satisfied: scipy in /Users/etsiva/anaconda3/lib/python3.7/site-packages (from gym>=0.17.2->nes-py==8.1.2) (1.5.2) Using cached gym-0.17.3-py3-none-any.whl Using cached gym-0.17.2-py3-none-any.whl INFO: pip is looking at multiple versions of nes-py to determine which version is compatible with other requirements. This could take a while. ERROR: Cannot install nes-py and nes-py==8.1.2 because these package versions have conflicting dependencies.

The conflict is caused by: nes-py 8.1.2 depends on pyglet>=1.5.5 gym 0.18.0 depends on pyglet<=1.5.0 and >=1.4.0 nes-py 8.1.2 depends on pyglet>=1.5.5 gym 0.17.3 depends on pyglet<=1.5.0 and >=1.4.0 nes-py 8.1.2 depends on pyglet>=1.5.5 gym 0.17.2 depends on pyglet<=1.5.0 and >=1.4.0

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

OS:macOS 10.15.7

Maxwell2017 commented 3 years ago

Have you ever solved it? @allendred