Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question It works, but I can't write a code

Discussion in 'ML-Agents' started by youngilll, Mar 14, 2022.

  1. youngilll

    youngilll

    Joined:
    Feb 28, 2022
    Posts:
    1
    I've done machine learning using Anaconda, and it works well even if I press play on Unity. But there's no name space


    im using
    python 3.7.11
    ML agent 2.2.1
    Visual studio 2022(also, I've tried VS Code.)
     
  2. ChillX

    ChillX

    Joined:
    Jun 16, 2016
    Posts:
    145
    Somehow the Unity ML Agents package is not installed properly. even though it is installed.

    In my case if I open the Projects folder from Unity ML Agents download this sometimes happens.

    To resolve it. I goto package manager. Write down the exact versions of Unity ML Agents and Agent Extensions.
    Then in package manager enable preview packages
    Then remove the installed ML Agents Extensions and ML Agents packages.
    Then add the same exact versions back again.
    Note: Agent extensions must be installed from the GIT URL: https://github.com/Unity-Technologi...umentation~/com.unity.ml-agents.extensions.md