- Notifications
You must be signed in to change notification settings - Fork749
-
Often we have multiple versions of python installed, although not idea. For example, most often I find python 3.7 or 3.8 in parallel with 3.9. When I'm using pythonnet 2.5.1 I would like to flag in my UI somehow that 3.9 is not supported, so I can react, like change some paths or switch the version to 3.7 or 3.8. Is there a good way to determine this at runtime? |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 4 replies
-
Tryhttps://github.com/losttech/WhichPython |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thanks Victor! My use case is that my app is an add-in and doesn't install python.NET itself, so I can't just hardcode a value. One very hacky way I can think of is to try and find Is there a good way of finding out what are the supported versions by python.NET, at runtime? |
BetaWas this translation helpful?Give feedback.
All reactions
-
We could expose this as a property or function in the DLL (only for 3.0 onwards, I don't think we will make another 2.5 release). |
BetaWas this translation helpful?Give feedback.
All reactions
👍 2
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Ok, good to know. And yes, I believe that would be a good thing to have going forward. |
BetaWas this translation helpful?Give feedback.
All reactions
-
That would be helpful. I've just put a hard-wired check for Python <= 3.8 into my library to avoid mysterious exceptions when it runs with Python 3.10. |
BetaWas this translation helpful?Give feedback.