Failed to Load TensorBoard: No module named 'tensorboard' [LearningAgents]

So I’ve been integrating the Learning Agents Plugin into my game project, and so far, so good, the plugin is pretty much ready for training, except for one thing: I can’t seem to get TensorBoard to run. Everything else runs: it does go through a training process, I get the appropriate logs about average
rewards, returns etc.

I went through this page to setup tensorboard, but for some reason the plugin does not seem to find tensorboard. Every time, i get this message

[...]
LogLearning: Display: LearningAgentsManager: Adding Agent C_UnitInstance_30 with id 13.
LogLearning: Display: LearningAgentsManager: Adding Agent C_UnitInstance_31 with id 14.
LogLearning: Display: LearningAgentsManager: Adding Agent C_UnitInstance_32 with id 15.
LogLearning: Display: UnitTrainer_0: Sending / Receiving initial policy...
LogLearning: Display: Training Process: Warning: Failed to Load TensorBoard: No module named 'tensorboard'. Please add manually to site-packages.
LogLearning: Display: Training Process: {
LogLearning: Display: Training Process:     "TaskName": "UnitTrainer_0",
LogLearning: Display: Training Process:     "TrainerMethod": "PPO",
[...]

… and no tensorboard logs get written to Intermediate. The thing is that tensorboard, as far as I can tell, is indeed installed. If I list installed plugins in the windows command prompt, I get:

C:\Program Files\Epic Games\UE_5.4\Engine\Binaries\ThirdParty\Python3\Win64>python.exe -m pip list
Package                 Version
----------------------- -------
absl-py                 2.1.0
grpcio                  1.64.1
Markdown                3.6
MarkupSafe              2.1.5
numpy                   1.26.4
pip                     24.1.2
protobuf                4.25.3
setuptools              65.5.0
six                     1.16.0
tensorboard             2.17.0
tensorboard-data-server 0.7.2
Werkzeug                3.0.3

Furthermore, from within the UE5 editor python console, typing ‘import tensorboard’ does not return an error, so Unreal seems to actually find the module… but somehow, the LearningAgents plugin does not during training.

I checked the answers given in this other post that seemed a bit similar to my problem, but no cigar. The Python Foundations Package is still in my project, and my paths seem correct. I tried changing the default EditorEngineRelativePath from ‘…/…/…/Engine/’ to the actual absolute path, no change whatsoever, still cant find the module.

Ideas? I’m kinda hitting my head into a wall here :sweat_smile:

I just tested further that this does not seem to be project specific. I re-went through the Learning to drive tutorial and recreated the vehicle-based project to make sure I didnt break anything in my own game, and I get the same error using this project as well (it otherwise learns properly, no problem anywhere else)