Install python packages for Indigo 2022.1

Posted on
Thu May 12, 2022 12:51 pm
kmarkley offline
Posts: 185
Joined: Nov 15, 2016

Install python packages for Indigo 2022.1

One of my plugins uses a large 3rd party library that in turn has a number of prerequisites, making it inappropriate to include directly in the plugin.

What is the best way to make this available in the python 2 environment installed with Indigo 2022.1? I previously installed it with pip, but the plugin is unable to import it. The shared methods folder also doesn't seem quite right because of the prerequisites list.

(Yes, I will also need to get it working in python 3 eventually, but right now I'm just trying fix the breaking error so my automation works.)

Thanks.

Posted on
Thu May 12, 2022 1:42 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Install python packages for Indigo 2022.1

You have to reinstall using pip2 - we're using a different Python 2 install (not the one from Apple) so you'll need to reinstall all the libs that you've installed in the past.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu May 12, 2022 1:51 pm
kmarkley offline
Posts: 185
Joined: Nov 15, 2016

Re: Install python packages for Indigo 2022.1

Do I need to specify somehow which python pip2 will install to? I don't see anything about that in the pip documentation.

I assume that since pip installed the package on the default Apple python last time that it would just do the same if I ran it again.

Posted on
Thu May 12, 2022 2:23 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Install python packages for Indigo 2022.1

This documentation page explains it, but if you still have questions after you read it feel free to ask (and we can update the docs to clarify).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu May 12, 2022 3:06 pm
kmarkley offline
Posts: 185
Joined: Nov 15, 2016

Re: Install python packages for Indigo 2022.1

That's what I needed. Thanks.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests