How Can I Configure TestStand to Work with Python from Anaconda?

Updated Oct 27, 2020

Environment

Software

  • TestStand

I would like to use Python from a package manager like Anaconda. How can I do this?

Since Anaconda stores the Python environment in a different location than an original distribution, the PATH environment variable will need to be configured. You will need to add the path to Python and scripts folder from the installation you want to use. If you installed Anacoda with Python 3.7 for your user, then you will need to add the following two paths to the PATH environment variable:

C:\Users\<Username>\AppData\Local\Continuum\anaconda3
C:\Users\<Username>\AppData\Local\Continuum\anaconda3\Scripts

You can follow the KnowledgeBase article Editing the PATH Environment Variable for TestStand’s Python Adapter to do this. You will need to close out of TestStand and the TestStand Version Selector for the Python version to appear in the Python Adapter configuration window.