Couldn't connect to trainer on port 5004 using API version 1.5.0. Will perform inference instead.

as topic shown, im using pc(win11)

-anaconda setup
-python 3.9.16
-mlagents/mlagents-envs 0.30.0
-torch 2.0.1+cull7 (tried 1.7.1+cull7 as well)
-torchvision 0.15.2+cull7

unity 2022.2.15f1 , on windows build settings
mlagent package(unity side) 2.0.1

i can start the training in the editor, however, the anaconda prompt cannot pickup the scene as unity cannot connect to port. How can i solve this?

have you added a decision requester to your agent?