简体   繁体   English

安装基线时出现问题!!! OSError: [Errno 9] 错误的文件描述符

[英]Problem installing baselines !!! OSError: [Errno 9] Bad file descriptor

I have Python 3.7, was following instructions in https://github.com/openai/baselines , I got to the step "Testing the installation", which says to do the following:我有 Python 3.7,按照https://github.com/openai/baselines 中的说明进行操作,我进入了“测试安装”步骤,其中说要执行以下操作:

pip install pytest
pytest

Here, I ran into a problem:在这里,我遇到了一个问题:

Exception ignored in: <function SubprocVecEnv.__del__ at 0x1c348c2b90>
Traceback (most recent call last):
  File "/Users/daveloui/GitHub/RND/random-network-distillation/baselines/baselines/common/vec_env/subproc_vec_env.py", line 121, in __del__
    self.close()
  File "/Users/daveloui/GitHub/RND/random-network-distillation/baselines/baselines/common/vec_env/vec_env.py", line 98, in close
    self.close_extras()
  File "/Users/daveloui/GitHub/RND/random-network-distillation/baselines/baselines/common/vec_env/subproc_vec_env.py", line 104, in close_extras
    remote.send(('close', None))
  File "/anaconda3/envs/tensorflow_114/lib/python3.7/multiprocessing/connection.py", line 206, in send
    self._send_bytes(_ForkingPickler.dumps(obj))
  File "/anaconda3/envs/tensorflow_114/lib/python3.7/multiprocessing/connection.py", line 404, in _send_bytes
    self._send(header + buf)
  File "/anaconda3/envs/tensorflow_114/lib/python3.7/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
OSError: [Errno 9] Bad file descriptor

There is more to this error, but it was too long to post it all.这个错误还有更多,但发布所有内容太长了。

Solution found when the following missing dependencies were installed:安装了以下缺少的依赖项时找到的解决方案:

pip install filelock
brew install libav-tools
pip install gym[atari]
pip install pandas
pip install matplotlib

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

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