-
-
April 1, 2019 at 2:27 pm
adrianio
SubscriberHi,
I am currently writing an ACT extension that exports the mass and stiffness matrix from Mechanical, using APDL code run in the background. I will then need to perform some matrix operations on these matrices using the Python library NumPy. However, it looks like ACT does not support external Python libraries, as I get the error message "No module named numpy" when theÂ
import numpy
 command is run.Â
Is it possible to somehow set the path to my local installation of NumPy so that ACT recognizes the module and imports it corectly? I have used other Python modules, like "datetime" and "subprcess" without any import errors, so I figure NumPy would be possible to use as well.Â
Â
Thanks for any help. It is highly appreciated.
Adrian
-
February 4, 2020 at 8:09 am
pinkerthoms
SubscriberHi,
Did you find a solution to import these libraries ?
-
July 23, 2020 at 10:50 am
Mark Capellaro
Ansys EmployeeThe python used in ACT is IronPython. That means that only libraries that function with python pre 3.0(?) will work. So numpy will not work directly with ACT. If you check the documentation for individual packages, you will see what python versions it is written for.Â
-
- The topic ‘Importing external Python libraries into ANSYS ACT’ is closed to new replies.
-
3767
-
1333
-
1173
-
1090
-
1014
© 2025 Copyright ANSYS, Inc. All rights reserved.