Python version of Global Shared Code

SanderVW
Level 3
Python version of Global Shared Code

Operating system used: WindowsWe have been using the same script as part of our global shared code for quite some time. Today, we started getting syntax errors from f-strings and **kwargs. This led us to believe the python version of our global shared code has changed to an earlier version where this is not supported.

Is there a way to inspect the python environment of the global shared code and to adjust it to a more current version?

We are at a bit of a loss and would prefer not to change the script itself as it is quite extensive ๐Ÿ˜…

0 Kudos
1 Reply
Turribeach

Run this and you will know what version of Python you have:

import sys
print(sys.version)

Are you using a built-in Python code environment? If so, don't. You should create a new code environment for your project and set it at project level. 

 

0 Kudos