试试
./ns3 configure
它将显示已安装和丢失的文件(不同颜色)。安装那些依赖项。希望这会奏效。
如果没有,请尝试通过运行以下命令启用 python 绑定。
./ns3 configure --enable-python-bindings