Best way to deal with updates of Python Version

Best way to deal with updates of Python Version

henning.mankeEEHK2
Observer Observer
431 Views
2 Replies
Message 1 of 3

Best way to deal with updates of Python Version

henning.mankeEEHK2
Observer
Observer

Dear all,

 

im a frequent user of the API as we have many script to implement many geometries. These scripts depend on various python packages. As you can not disable the updates of Fusion360, we need to reinstall all those python packages into the newest python installation path of Fusion 360 to use our scripts again. This is somehow going on our nerves. We already have a script that installs those packages, but we still have to manually install pip into the corresponding folder which we have to search within our explorer / finder. 

 

What is the best way to deal with it? I mean, I would prefer to simply stop the updates but to my knowledge I just can't do that.

 

Best regards,

Henning

0 Likes
432 Views
2 Replies
Replies (2)
Message 2 of 3

kandennti
Mentor
Mentor

Hi @henning.mankeEEHK2 .

 

The example I have seen is this add-in published by @Anonymous .

https://github.com/NicoSchlueter/Reverse 

 

I have numpy and scipy in the local folder of the add-in and reference them.
Therefore, it is not affected by Fusion360 updates.

 

However, I do not know how to prepare these without using pip.

 

0 Likes
Message 3 of 3

Jorge_Jaramillo
Collaborator
Collaborator

Hi @henning.mankeEEHK2 ,

 

I did it by creating an independent folder out of fusion's installation folder, keep there the copy of the requested python modules, and reference this folder from the script.

This way, new fusion's releases won't change it, and not re-installation required as Fusion's Python version remains the same.

I posted the step by step here, if you want to give it a try.

 

Hope this could help.

 

Regards,
Jorge