问题一:报错 AttributeError: module ‘gym.envs.box2d’ has no attribute 'BipedalWalker’
- 这是因为gym没有安装box2d的原因。
pip install box2d-py
如果上面这条命令出下面这个报错:
error: command ‘swig.exe’ failed: No such file or directory
那就是swig这个软件没装,如果是装了anoconda的话输入命令
conda install -c anaconda swig
用pip应该也有相应方法装swig。
问题二:error: command ‘cl.exe’ failed: No such file or directory python
- 在解决问题一时出现问题二是因为缺少’cl.exe’,安装vs就解决了
点击链接 下载vs链接
其他注意问题:
- pytorch与Torchversion版本要对应(例如pytorch=1.0时Torchversion=0.2)