What is the latest python version officially suported in Fusion 360?

What is the latest python version officially suported in Fusion 360?

Anonymous
Not applicable
1,920 Views
6 Replies
Message 1 of 7

What is the latest python version officially suported in Fusion 360?

Anonymous
Not applicable

How do I determine the latest version of python that is officially supported for use in Fusion 360? Is there a document I can reference? Is it buried in the software or installation directory?

 

Python is currently at 3.9.x but I can't locate which version is supported in Fusion 360.

0 Likes
1,921 Views
6 Replies
Replies (6)
Message 2 of 7

JeromeBriot
Mentor
Mentor

Hello,

 

Edit any Python add-in from Fusion 360 and see the version specified at the bottom-left corner in VS Code :

 

api-python-version.PNG

 

Message 3 of 7

tim.collins29V9X
Enthusiast
Enthusiast

I would like to second the proposal to have an official URL to the officially supported Python, preferably reachable from the very first "how to set up your development environment" page or some such.

Thank you.

Message 4 of 7

BrianEkins
Mentor
Mentor

The simple way to know what version of Python Fusion is using is to use the "TEXT COMMANDS" window and make sure the "Py" radio button is selected and type "sys.version" at the prompt. I get the result shown below indicating Python 3.7.6.

sys.version

3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)]

 

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 5 of 7

tim.collins29V9X
Enthusiast
Enthusiast
Hi Brian,
Your information is correct, of course, but what if I have never done Fusion 360 API work before? I can't open a console with a Python I haven't installed or a console on an Autodesk provided Python if I don't know where it is.  I just want to get my environment set up and avoid at all costs working with versions of stuff that will just waste my and everyone else's time.
This is easy in the git/gradle/maven universe. Otherwise it goes in the documentation. If you have another idea I'd love to hear it.
0 Likes
Message 6 of 7

BrianEkins
Mentor
Mentor

There is nothing that you need to install. Python is delivered as part of Fusion. It's installed in the Fusion folder and is independent of any other installations of Python you might choose to install.

 

Because most people don't write programs, the VS Code development environment is not installed with Fusion, but the first time you edit a script or add-in, Fusion will automatically install the latest version of VS Code along with the VS Code Python plug-in, so there's nothing you need to do there either. VS Code automatically keeps itself up to date.

 

So, there's nothing you need to explicitly install or set up.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 7 of 7

tim.collins29V9X
Enthusiast
Enthusiast
Interesting. I already had Visual Studio Code installed along with 3 other versions of Python so I didn't notice all the automatic features. I was already writing some Python code with the idea of using the API.  Thanks for taking the time to explain.
0 Likes