Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Python for Unity Install

Discussion in 'Formats & External Tools Previews' started by Jayckoup, May 19, 2021.

  1. Jayckoup

    Jayckoup

    Joined:
    May 19, 2021
    Posts:
    4
    Hi, I'm new to unity and trying to install the Python for Unity package (specifically version 4.0.0-exp.5) however I'm unable to locate it in Package Manager and I have found no way to download the package from the web. The installation documentation isn't very helpful so I'm wondering if anyone has any ideas.

    I'm using Unity version 2021.1.7f1 on a free personal license.

    https://docs.unity3d.com/Packages/com.unity.scripting.python@4.0/manual/installation.html
     
    Vincent-Russell likes this.
  2. Lekret

    Lekret

    Joined:
    Sep 10, 2020
    Posts:
    350
    Check if you have preview packages enabled.
     
  3. Jayckoup

    Jayckoup

    Joined:
    May 19, 2021
    Posts:
    4
    In Project Settings>Package Manager>Advanced Settings, I have "Enable Pre-release Packages" checked which I'm assuming is what you are talking about. I have tried closing and reopening the project and I still don't see Python for Unity.
     
  4. As ALL experimental packages, it installs special way to prevent people who doesn't know what they are doing to install the package. So they say.
    screenshot1.png
    Paste this in the input box:
    com.unity.scripting.python
    hit add or enter.
     
    TereBin, Joe-Censored and Jayckoup like this.
  5. Jayckoup

    Jayckoup

    Joined:
    May 19, 2021
    Posts:
    4
    This worked thank you!
     
  6. Lekret

    Lekret

    Joined:
    Sep 10, 2020
    Posts:
    350
    There was really people who complained about "package X did something to my project"?.
     
  7. There are still people, who are using experimental/preview/etc packages and whining on all forums that they aren't working perfectly. When they go through all sorts of hoops to install the package.

    People are just like to whine.
     
    Joe-Censored and Lekret like this.
  8. KardFett

    KardFett

    Joined:
    Jun 8, 2021
    Posts:
    2
    I'm having the same problems here, I went in and enabled experimental packages, but I don't even see the option for "add package by name" and I can't find it in the package list. I'm very new to Unity, so if anyone has an idea, please give me step-by-step instructions on how to enable that option.

    Thanks!
     
  9. markvi

    markvi

    Joined:
    Oct 31, 2016
    Posts:
    118
    Hi @KardFett, check out this thread to see installation instructions for every supported version of Unity.

    tl;dr If you're using 2020.3 or earlier, use "Install package by git URL..." (accessed from the + menu at the top left of Package Manager). Enter com.unity.scripting.python in the text field that pops up and hit enter.
     
  10. poliska5

    poliska5

    Joined:
    Jul 27, 2021
    Posts:
    3
    i did this but got this error

    DllNotFoundException: Could not load Library/PythonInstall/lib/libpython3.7m.dylib with flags RTLD_NOW | RTLD_GLOBAL: dlopen(Library/PythonInstall/lib/libpython3.7m.dylib, 0x000A): tried: '/Applications/Unity/Unity.app/Contents/MacOS/../Frameworks/Library/PythonInstall/lib/libpython3.7m.dylib' (no such file), 'Library/PythonInstall/lib/libpython3.7m.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/libpython3.7m.dylib' (no such file), '/usr/lib/libpython3.7m.dylib' (no such file), '/Users/myname/Projects/Unity/Myproject/Library/PythonInstall/lib/libpython3.7m.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/libpython3.7m.dylib' (no such file), '/usr/lib/libpython3.7m.dylib' (no such file)

    i am using mac m1 and unity 2021.2.7f1(silicon unity editor)
    although i installed silicon editor, in unity hub it says intel

    Could this be related the error,Did i somehow install the wrong editor? i installed silicon build supports ios,webgl and got nothing wrong
     
    Andrearo04 likes this.
  11. xadian101

    xadian101

    Joined:
    Jun 23, 2021
    Posts:
    1
    Hi @poliska5,
    Did you manage to solve this issue? I'm on Unity 2021.3.0f1 and have exactly the same problem
     
    Andrearo04 likes this.
  12. poliska5

    poliska5

    Joined:
    Jul 27, 2021
    Posts:
    3
    Nope, i didnt make an effort after that.