我想知道你们中是否有人将 matplotlib 用于与 ABAQUS 耦合的 python 代码。我真的很想将 matplotlib 加载到 abaqus-python 界面上。我正在使用 ABAQUS 6.12,它有 python 2.6。另外,我使用的是 Windows 64 位。
但是,当我下载 python 2.6 的 matplotlib 时,它安装失败并提示
"Python 2.6 required, which is not found in the Registry."
谁能帮帮我?有谁知道安装 matplotlib 使其适用于 Abaqus 6.12 的分步方法吗?
任何帮助将不胜感激! 谢谢
注意:对于那些不熟悉 FEA 软件的人,Abaqus 脚本接口(interface)是 Python 面向对象编程语言的扩展,并随 ABAQUS/CAE 一起提供。
最佳答案
我在 Abaqus 6.11 中使用 Matplotlib 1.3.0
。一切都是 64 位的。我相信 Abaqus 6.12 也能正常工作。该过程是(使用与我相同的配置,但我相信更新版本的 NumPy 和 Matplotlib 也能正常工作):
配置您的环境变量 PYTHONPATH
指向在从 Abaqus 导入之前安装了 matplotlib
。
您可能会收到如下 RuntimeWarning:
C:\Python27\Lib\site-packages\PIL\Image.py:71:
RuntimeWarning: The _imaging extension was built for another version of Python; most PIL functions will be disabled
但是您可以使用 Abaqus 中的大部分 matplotlib
功能。
关于python - 在 Abaqus 6.12 中使用 matplotlib(适用于 python 2.6),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19382382/