简体   繁体   English

无法安装OpenAI Gym

[英]can't install OpenAI gym

i am trying to install complete library of openAI gym (a toolkit for developing and comparing reinforcement learning algorithms) with help of pip. 我试图在pip的帮助下安装完整的openAI Gym库(用于开发和比较强化学习算法的工具包)。 But i am getting same error again and again. 但是我一次又一次地遇到相同的错误。 i have tried everything i got on net to solve the problem but can't make it.plz help me to get a way. 我已经尽力解决了所有问题,但还是无法解决。plz帮助我找到了解决之道。 here is my code--- 这是我的代码-

mukesh@mukesh-Inspiron-5558:~/gym$ sudo pip install -e .[all]
The directory '/home/mukesh/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/mukesh/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Obtaining file:///home/mukesh/gym
Requirement already satisfied: numpy>=1.10.4 in /home/mukesh/.local/lib/python2.7/site-packages (from gym==0.7.3)
Requirement already satisfied: requests>=2.0 in /home/mukesh/.local/lib/python2.7/site-packages (from gym==0.7.3)
Requirement already satisfied: six in /home/mukesh/.local/lib/python2.7/site-packages (from gym==0.7.3)
Requirement already satisfied: pyglet>=1.2.0 in /home/mukesh/.local/lib/python2.7/site-packages (from gym==0.7.3)
Requirement already satisfied: PyOpenGL in /usr/lib/python2.7/dist-packages (from gym==0.7.3)
Collecting box2d-py (from gym==0.7.3)
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/box2d-py/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/box2d-py/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/box2d-py/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/box2d-py/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/box2d-py/
  Could not find a version that satisfies the requirement box2d-py (from gym==0.7.3) (from versions: )
No matching distribution found for box2d-py (from gym==0.7.3)

You are behind a proxy, so you need to setup pip so that it uses your proxy. 您位于代理之后,因此您需要设置点子,以便它使用您的代理。 The basic format is of this form: 基本格式为以下形式:

 [user:passwd@]proxy.server:port

For example: 例如:

pip --proxy http://<your proxy>:<your port> (for http)
pip --proxy https://<your proxy>:<your port> (for https)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM