[Python] ERROR: C:\\Program Files (x86)\\Microsoft Visual...

Discussão em 'Python' iniciado por Stack, Dezembro 7, 2024.

  1. Stack

    Stack Membro Participativo

    I was trying to install Mujoco and run a simple script which is :

    import gym # openAi gym
    from gym import envs
    env_name = 'InvertedDoublePendulum-v2'
    env = gym.make(env_name)
    env.reset()
    for _ in range(1000):
    env.render()
    env.step(env.action_space.sample()) # take a random action
    env.close()


    However i encountered the following error: "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2"

    Python version: 3.7.4 gym version: 0.21.0

    I had downloaded the microsoft visual studio build tools 2019 and restarted the system but doesn't seem to help. Any help is appreciated.

    Continue reading...

Compartilhe esta Página