Finished processing dependencies for chainer==7.7.0
(base) [ec2-user@ip-chainer]$ ls
appveyor chainer2019_bibtex.txt chainermn_bibtex.txt chainerx_cc docker MANIFEST.in scripts
appveyor.yml chainer_bibtex.txt chainerx codecov.yml docs onnx_chainer setup.cfg
build chainer.egg-info chainerx_build_helper.py CODE_OF_CONDUCT.md examples README.md setup.py
chainer chainermn chainerx_build_helper.pyc dist LICENSE readthedocs.yml tests
(base) [ec2-user@ip-chainer]$ cd ..
(base) [ec2-user@ip-workspace]$ cd baselines/general/chainerrl/baselines/agents
(base) [ec2-user@ip-agents]$ python behavioral_cloning.py
/home/ec2-user/.local/lib/python3.7/site-packages/gym/logger.py:30: UserWarning: WARN: Box bound precision lowered by casting to float32
warnings.warn(colorize('%s: %s'%('WARN', msg % args), 'yellow'))
Traceback (most recent call last):
File "behavioral_cloning.py", line 12, in
import chainer
ModuleNotFoundError: No module named 'chainer'
(base) [ec2-user@ip- agents]$
查了一下,anaconda里只有python3.7,而且里头没有gym、chainerrl等等这些库,可以试一下放进去看行不行。
再看一下/usr/local/lib/python2.7/site-packages 这个库里有什么。
这个库里也没有这个了,刚才还有的。
明白了,刚才有的是(base) [ec2-user@ip- ~]$ ls 这个库,刚才没有的是workspace下的/usr/local/lib/python2.7/site-packages 这里。
现在试着把这些文件夹放到anaconda里看行不行。