ImportError: cannot import name 'cpp_household' from 'roboschool'
ImportError: cannot import name 'cpp_household' from 'roboschool'
请帮助我。我无法导入 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,很遗憾。
请帮助我。我无法导入 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,很遗憾。