gpt4 book ai didi

python - 无法安装 OpenAI 健身房

转载 作者:行者123 更新时间:2023-12-04 18:51:13 26 4
gpt4 key购买 nike

我正在尝试在 pip 的帮助下安装完整的 openAI gym 库(一个用于开发和比较强化学习算法的工具包)。但我一次又一次地遇到同样的错误。我已经尝试了我在网上找到的所有方法来解决问题,但无法解决问题。请帮助我找到方法。
这是我的代码---

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)

最佳答案

您在代理后面,因此您需要设置 pip 以便它使用您的代理。基本格式是这种形式:

 [user:passwd@]proxy.server:port

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

关于python - 无法安装 OpenAI 健身房,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42107232/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com