python - 在 Abaqus 6.12 中使用 matplotlib(适用于 python 2.6)

标签 python matplotlib python-2.6 finite-element-analysis

我想知道你们中是否有人将 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/

相关文章:

python - 如何匹配从一个词到句末?

python - 显示 matplotlib 动态创建的图例

python - 用一个值替换一系列值

python - pyinstall 无法使用选项 --noconsole

Python PyCharm 公仔包! plt.figure\plot 在 Debug模式下停止工作,但在 Python 控制台上工作

python - 使用透明标记但不透明边缘绘图

python - Django 1.4 'bool' object has no attribute 'rindex' 表单处理问题

python结构错误 'module'对象没有属性 'HAVE_DECL_MPZ_POWM_SEC'

python - 在 CSV 编写器中替换\r\n 为\n

python - 使用 PyCharm 调试扭曲的应用程序