64 位 Windows 系统上 ABAQUS 的 scipy [英] scipy for ABAQUS on 64 bit Windows system

查看:59
本文介绍了64 位 Windows 系统上 ABAQUS 的 scipy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Python 脚本,在 ABAQUS 中使用并调用 numpy 和 scipy.我从 32 位 Windows 机器切换到 64 位机器.我在新的 64 位系统上为 ABAQUS 6.13.1 安装 scipy 时遇到问题.谁能给我一些关于如何为 ABAQUS 运行 scipy 并为我提供兼容版本的 scipy 的提示?

I have a Python script, which is used in ABAQUS and calls numpy and scipy. I switched from a 32-bit Windows machine to a 64-bit machine. I have problems installing scipy for ABAQUS 6.13.1 on my new 64-bit system. Could anybody give me some tips on how to get scipy running for ABAQUS and provide me with the compatible version of scipy?

问候.

推荐答案

下载并安装 64 位版本的 Anaconda.https://store.continuum.io/cshop/anaconda/

Download and Install a 64 bit version of Anaconda. https://store.continuum.io/cshop/anaconda/

使用 Conda,将 SciPy 版本降级以与 NumPy 的 Abaqus 版本兼容.在 Abaqus/CAE python shell 中,检查 NumPy 的版本:

Using Conda, downgrade the version of SciPy to be compatible with the Abaqus version of NumPy. In Abaqus/CAE python shell, check version of NumPy:

import numpy
numpy.version.version

在 windows 命令窗口中输入:

In a windows command window type:

conda install scipy numpy=1.6

将 Anaconda site-packages 目录中的 scipy 目录复制到 Abaqus 中.例如

Copy the scipy directory from the Anaconda site-packages directory into the Abaqus. e.g.

来自:

C:\Anaconda\Lib\site-packages\scipy

C:\Anaconda\Lib\site-packages\scipy

致:

C:\SIMULIA\Abaqus\6.14-1\tools\SMApy\python2.7\Lib\site-packages\scipy

C:\SIMULIA\Abaqus\6.14-1\tools\SMApy\python2.7\Lib\site-packages\scipy

也许不是所有的 SciPy 函数都可以工作(我认为 pip install 可以正确链接所有依赖项,但我没有尝试过这种方法)但是 SciPy 样条曲线拟合函数肯定工作得很好!

Maybe not all SciPy functions will work (I think a pip install will correctly link all dependencies but I have not tried this method) but the SciPy spline curve fitting functions certainly worked well!

这篇关于64 位 Windows 系统上 ABAQUS 的 scipy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆