1

Am working on Python 2.7.14 and I want to use UnityEngine, to run my script from Unity, when I try to install it with pip : pip install UnityEngine, this error come up:

`Could not find a version that satisfies the requirement UnityEngine (from versions: )
No matching distribution found for UnityEngine` 

How can I fix this? Can anyone help me with this please? PS: Am working on windows

Ran
  • 635
  • 2
  • 10
  • 22
  • Are you sure there actually is a package called "UnityEngine" available to download/install? –  Dec 20 '17 at 12:04
  • Take a look at this : [https://stackoverflow.com/questions/11766181/ironpython-in-unity3d] [http://shrigsoc.blogspot.com.es/2016/07/ironpython-and-unity.html] – Ran Dec 20 '17 at 12:14
  • Neither of these suggest there is a pip installable package called "UnityEngine" (which is what the command `pip install UnityEngine` is trying to find for you). I do not believe these other posts are using a pip installed package to work with unity - it's going to take more looking into for you I'm afraid. –  Dec 20 '17 at 12:19
  • So do you have any idea how to do that ? :/ – Ran Dec 20 '17 at 12:51

1 Answers1

0

There is no UnityEngine at PyPI (i.e. the package does not exist so cannot be pip installed).

May be you need http://forum.unity3d.com/threads/86461-Python-interpreter-in-Unity or https://github.com/exodrifter/unity-python but they're not pip-installable.

phd
  • 82,685
  • 13
  • 120
  • 165