请帮助我。我无法导入lib
机器人学校1.0.49健身房== 0.15.4
输入
import roboschool
输出
D:\Users\gumin\anaconda3\python.exe D:/Users/gumin/anaconda3/Lib/site-packages/roboschool/test.py
Traceback (most recent call last):
File "D:/Users/gumin/anaconda3/Lib/site-packages/roboschool/test.py", line 1, in <module>
import roboschool
File "c:\users\gumin\roboschool\roboschool\__init__.py", line 112, in <module>
from roboschool.gym_pendulums import RoboschoolInvertedPendulum
File "c:\users\gumin\roboschool\roboschool\gym_pendulums.py", line 1, in <module>
from roboschool.scene_abstract import SingleRobotEmptyScene
File "c:\users\gumin\roboschool\roboschool\scene_abstract.py", line 12, in <module>
from roboschool import cpp_household as cpp_household
ImportError: cannot import name 'cpp_household' from 'roboschool' (c:\users\gumin\roboschool\roboschool\__init__.py)
Process finished with exit code 1
看来您使用的是Windows。如here所述,不幸的是,roboschool无法在Windows上运行。