How can I install 3rd party packages #26
-
I want to import "xlrd" in my python code, but I don't how to install it to my Unity project. Is there someway install 3rd party packages. Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
exodrifter
Apr 13, 2020
Replies: 2 comments
-
You'll need to add the location of the Basically, you'll need to do something like this: var engine = Python.CreateEngine();
var paths = engine.GetSearchPaths();
paths.Add("path/to/xlrd/module");
engine.SetSearchPaths (paths); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
exodrifter
-
OK, It worked. Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll need to add the location of the
xlrd
module when you set up the Python engine. We do something like this in the PythonLibrary.cs example.Basically, you'll need to do something like this: