Search code examples
pythonanacondaopenai-gym

Trouble installing OpenAI's gym


I would like to install the entire Open AI gym package. After (I am on a mac) brew install cmake , sudo pip install gym[all] gives me the following error

enter image description here

I am using anaconda 4.3.22. I am not in a conda virtual environment. which python outputs /anaconda/bin/python. The interpreter that anaconda uses is python 3.6.1. Just running sudo pip gym (which must be the minimal version) ran fine.

Thanks for the help.


Solution

  • I have successfully installed gym on my mac laptop, and brew install swig will solve the problem.