Chemicalfox
Chemicalfox

Reputation: 1

Force TouchDesigner to use a specific python version

I'm running Windows10.

For my project I have to use Python 3.10 with tensorflow-directml, torchvision and other deep learning tools.

The following is a link to one of the many guides about this topic: text

Unfortunately the 2023 Touchdesigner version (that is the last compatible one for my purpose) has python 3.11 installed but the tools used for this project are only compliant for python 3.10 and so I have to find a way to make TD works with Python 3.10

I already forced TD to use an external Python installation, in Preferences I mannually added the path to the Python 3.10 folder in the “Python 64-bit Module Path” and biffed:

Even if I link the path to the python 3.10 version in preferences, touchdesigner still uses the 3.11.
I also create the system variables PYTHONHOME and PYTHONPATH pointing to python 3.10 folders.

In TouchDesigner, by running:

import sys
print(sys.version)
print(sys.path)

The textport says:

['C:\\Program Files\\Derivative\\TouchDesigner\\bin', 'C:\\Program Files\\Derivative\\TouchDesigner\\bin\\python311.zip', 'C:\\Program Files\\Derivative\\TouchDesigner\\bin\\Lib', 'C:\\Program Files\\Derivative\\TouchDesigner\\bin\\DLLs', 'C:\\Program Files\\Derivative\\TouchDesigner\\bin', 'C:\\Program Files\\Derivative\\TouchDesigner\\bin\\Lib\\site-packages', 'C:/Users/smanie/AppData/Local/Programs/Python/Python310', 'C:\\Users\\smanie\\AppData\\Local\\Programs\\Python\\Python310\\Lib\\site-packages']
python >>>

I've tried many times with clean touchdesigner install with no results. How can I do?

Upvotes: 0

Views: 18

Answers (0)

Related Questions