Error in Example of Learning Agent:oduleNotFoundError: No module named 'numpy'

LogLearning: Display: Subprocess: Traceback (most recent call last):
LogLearning: Display: Subprocess:   File "F:\UE_5.5\Engine\Plugins\Experimental\LearningAgents\Content\Python\train.py", line 32, in <module>
LogLearning: Display: Subprocess:     module = import_module(trainer_module_name)
LogLearning: Display: Subprocess:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LogLearning: Display: Subprocess:   File "F:\UE_5.5\Engine\Binaries\ThirdParty\Python3\Win64\Lib\importlib\__init__.py", line 126, in import_module
LogLearning: Display: Subprocess:     return _bootstrap._gcd_import(name[level:], package, level)
LogLearning: Display: Subprocess:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LogLearning: Display: Subprocess:   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
LogLearning: Display: Subprocess:   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
LogLearning: Display: Subprocess:   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
LogLearning: Display: Subprocess:   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
LogLearning: Display: Subprocess:   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
LogLearning: Display: Subprocess:   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
LogLearning: Display: Subprocess:   File "F:\UE_5.5\Engine\Plugins\Experimental\LearningAgents\Content\Python\train_ppo.py", line 14, in <module>
LogLearning: Display: Subprocess:     import numpy as np
LogLearning: Display: Subprocess: ModuleNotFoundError: No module named 'numpy'
LogLearning: Error: PPOTrainer_1: Error sending policy to trainer: Unexpected communication received. Check log for additional errors.

I have tried to install numpy via pip multiple times but it keeps failing.

1 Like

Even i have this problem in Unreal Engine 5.6 where i’m working on metahuman & python

while starting the engine, the output log deluivers this:
[2025.08.22-09.55.32:038][ 0]LogPython: Error: Traceback (most recent call last):
[2025.08.22-09.55.32:038][ 0]LogPython: Error: File “G:/UNREAL_ENGINEs/UE_5.6/Engine/Plugins/VirtualProduction/CameraCalibrationML/Content/Python/init_unreal.py”, line 8, in
[2025.08.22-09.55.32:038][ 0]LogPython: Error: import calibration
[2025.08.22-09.55.32:038][ 0]LogPython: Error: File “G:\UNREAL_ENGINEs/UE_5.6/Engine/Plugins/VirtualProduction/CameraCalibrationML/Content/Python\calibration.py”, line 15, in
[2025.08.22-09.55.32:038][ 0]LogPython: Error: import numpy as np
[2025.08.22-09.55.32:038][ 0]LogPython: Error: ModuleNotFoundError: No module named ‘numpy’

Still now it didn’t affect my work, i suspect this is problem for some of my struggles & bigs in my project.