说装好了,但是输入gym,说没有这个模块
(base) [ec2-user@ip- minerl]$ python
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import gym
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘gym’
pip install --upgrade pip --user
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip canbe found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already up-to-date: pip in /home/ec2-user/.local/lib/python2.7/site-packages (20.2)
(base) [ec2-user@ minerl]