Consider using the `--user` option or check the permissions.
问题1:Consider using the --user
option or check the permissions.
在龟速安装几个小时后,出现
Collecting glfw>=1.4.0 (from mujoco_py<2.1,>=1.50->gym==0.15.3)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection
之后出现报错
ERROR: Could not install packages due to an EnvironmentError: [Errno 13]…
Consider using the --user
option or check the permissions.
开始趟坑
第一次尝试:
查了资料,按如下命令尝试
pip install --user -e ‘.[all]’
结果报错
ERROR: File “setup.py” not found. Directory cannot be installed in editable mode: /home/~
第二次尝试:
使用pip3 install --user -e ‘.[all]’
结果报错:
Directory ‘.’ is not installable. File ‘setup.py’ not found.
问题解决:
突然发现再使用–user的时候,因为新开终端,而没有进入gym路径,导致出错。
在cd 切换到gym路径后,运行pip install --user -e ‘.[all]’
问题解决。
问题2
好不容装好gym 了,然后在服务器import gym 的时候,提示需要Xmanager 软件来处理X11请求。
然后按提示开始安装Xmanager ,这个软件用校园邮箱可以免费,不然的话只能试用30天。
大家遇到的各种奇葩问题都列出来吧,我们一起做一个汇总贴,希望能为futurer节省点时间。