cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Translate the entire conversation x

Prime 11 with Anaconda3 Python

JeffH1
16-Pearl

Prime 11 with Anaconda3 Python

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.

ACCEPTED SOLUTION

Accepted Solutions
JeffH1
16-Pearl
(To: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.

View solution in original post

3 REPLIES 3
JeffH1
16-Pearl
(To:JeffH1)

I also put in a trouble ticket with PTC.

DhirajPatil
15-Moonstone
(To:JeffH1)

Hi Jeff, 

Thank you for bringing this to our notice. PTC R&D is working on it, 

Dhiraj 

JeffH1
16-Pearl
(To: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.

Announcements

Top Tags