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

I really dont know if those are good solutions, but i had the same problem as you and could fix it in two ways(both working on two different win11 machines…) :

  1. Modifiying the train_ppo.py in \Engine\Plugins\Experimental\LearningAgents\Content\Python, by hardcoding the path to the engine site packages
'''
Copyright Epic Games, Inc. All Rights Reserved.
'''

import sys
import os
import time
import json
import socket
import traceback
from collections import OrderedDict

site_packages_path = "{Path to ENGINE}/Binaries/ThirdParty/Python3/Win64/Lib/site-packages"
sys.path.append(site_packages_path)
  1. Rerunning the python -m pip install tensorboard command from the project specific python.exe instead of the engine one.
    So: {Path to PROJECT}\Intermediate\PipInstall\Scripts instead of {Path to ENGINE}\Binaries\ThirdParty\Python3\Win64
    It will add a second tensoboard.exe, in the {Path to PROJECT}\Intermediate\PipInstall\Scripts folder, from where you then have to call the tensorboard --logdir={Path to PROJECT}\Intermediate\LearningAgents\TensorBoard\runs foo

My project and engine install are on the same drive, and I did not change any of the trainerpathsettings from the defaults, if that matters

Cant say if one of those ways will cause other problems, because I really am not well versed in python :sweat_smile: And only tested it with the editor, not cooked or headless builds.

1 Like