Search code examples
pythonmodulepippycharmopenai-gym

PyCharm won't install gym package


I just installed it with pip, and wanted to import it in PyCharm, but got an error:


Solving environment: ...working... failed

PackagesNotFoundError: The following packages are not available from current channels:

  • gym

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.


does anyone know how to fix this by any chance?


Solution

  • From pycharm,

    goto settings -> project Interpreter

    Click on + button on top right corner and you will get pop-up window of Available packages. Then search for gym python package.

    Then click on Install package to install the gym package