Skip to main content
16-Pearl
May 11, 2025
Solved

Prime 11 with Anaconda3 Python

  • May 11, 2025
  • 1 reply
  • 1481 views

Anyone have success pointing Mathcad to the Anacona3 installation directory?

 

I have Anaconda Python.  Root environment is v3.11, but I have a personal v3.8 environment.  Both are supported by Mathcad Prime 11 for Advanced Controls.  My installation for Anaconda 3 is at:

 

C:\ProgramData\Anaconda3 

 

Note: Anaconda doesn't like paths with spaces, so it installs in C:\ProgramData by default.  This directory contains python.exe, python3.dll and python311.dll.   I think this is the correct "Python installation folder" that I have set in Options.

 

I pointed the Mathcad Options item for the Python path to this directory.   Restarted Mathcad Prime 11.  It still can't find Python in my Custom Control script editor.

JeffH1_0-1746975858728.png

Hopefully, someone out there has gotten this to work and can shed some light.

Best answer by JeffH1

Recommendation from PTC: Put the Anaconda3 directory (where the python binaries are stored) in the path.

 

This solution works and Mathcad is able to find the Python executable for Advanced Control scripting.  However, per the installation instructions on anaconda.com, they state (emphasis mine):

 

  • Add Anaconda3 to my PATH environment variable - Adds the path that contains the conda binaries to your PATH environment variable. Anaconda does not recommend selecting this option. The conda binaries path contains other package binaries, which are permanently added to your PATH environment variable, even if no conda environment is currently active. This makes it possible for other software to use these package files, which might lead to errors.

    JeffH1_0-1755535880819.png

    JeffH1_1-1755535880830.png

 

Use at your own risk.

1 reply

JeffH116-PearlAuthor
16-Pearl
May 11, 2025

I also put in a trouble ticket with PTC.

JeffH116-PearlAuthorAnswer
16-Pearl
August 18, 2025

Recommendation from PTC: Put the Anaconda3 directory (where the python binaries are stored) in the path.

 

This solution works and Mathcad is able to find the Python executable for Advanced Control scripting.  However, per the installation instructions on anaconda.com, they state (emphasis mine):

 

  • Add Anaconda3 to my PATH environment variable - Adds the path that contains the conda binaries to your PATH environment variable. Anaconda does not recommend selecting this option. The conda binaries path contains other package binaries, which are permanently added to your PATH environment variable, even if no conda environment is currently active. This makes it possible for other software to use these package files, which might lead to errors.

    JeffH1_0-1755535880819.png

    JeffH1_1-1755535880830.png

 

Use at your own risk.