配置 JMP 以运行 Python 代码我在 Windows Server 2012 上使用 JMP 15.2.0 版本,并安装了 Python 3.7.3(不带 Anaconda),Python sys.path 中的路径如下。
['', 'C:\\Python37-32\\python37.zip', 'C:\\Python37-32\\DLLs', 'C:\\Python37-32\\lib', 'C:\\ Python37-32', 'C:\\Python37-32\\lib\\site-packages']
但是,当尝试从脚本索引运行示例时,我收到错误。 对于 Python 初始化示例,
Names Default To Here( 1 );
Python Init(Use Python Version("3.7"), Python sys path("C:\Python37-32\python.exe"));
Python Submit( "\[
str = 'The quick brown fox jumps over the lazy dog';
]\" );
getStr = Python Get( str );
Show( getStr );
Python Term();我收到以下错误
在此系统上找不到 Python 安装。 JMP Python 支持需要 Python 3.0 或更高版本。在访问或评估 'Python Init' 时,Python Init/*###*/(Use Python Version( "3.7" ),
Python系统路径(“C:\Python37-32\python.exe”))
位于脚本索引第 2 行
有人能指出我缺少什么吗?
谢谢!
自动化和脚本编写数据存取质量和工艺工程回复:配置 JMP 以运行 Python 代码Anaconda 与其他人相处得不好。 它被设计为 Python 环境。 崩溃的问题是,当 JMP 尝试加载 Python36.dll 时,Python dll 本身会尝试加载其他必要的 dll。 在 Anaconda 环境中,这些 dll 位于标准 dll 搜索路径之外的位置。Python dll 本身正在崩溃,因为它找不到所需的 dll,这反过来又导致 JMP 非正常终止。
一般来说,让 Anaconda 工作的唯一方法是为所有用户在系统范围内安装它,并确保将其添加到 PATH 中。 这正是 Anaconda 安装程序警告不要做的事情。 最新的 JMP 16 具有额外的支持,因为 JMP 尝试将 Anaconda 动态添加到 LoadLibrary 搜索路径。 您必须使用 Python Init() 可选参数才能成功使用 Anaconda。 这是从 Python.org 使用 Python 的更成功的途径,并确保使用 pip 安装其他必要的包
pip 安装 numpy pandas matplotlib
根据您的 JMP 版本,您可能还需要 scipy 和 Qt5 软件包。
回复:配置 JMP 以运行 Python 代码我能够让 Python 工作的唯一方法是删除 Anaconda,然后直接访问 Python 站点并下载其版本。 JMP 人员向我指出了这个方向,表明 Anaconda 版本的 Python 对于大量 JMP 用户来说存在问题。e:配置 JMP 以运行 Python 代码JMP 15 系统要求页面表示建议使用 Python 3.6.5 或更高版本,因此我首先尝试更新 Python。
回复:配置 JMP 以运行 Python 代码我在Windows10 JMP15.2.0中也有类似的问题。
我的Python是3.6.13(Anaconda)。 我也安装了2.7。
在 jmp 中,当我在 Python Init(Path("python36.dll 的正确路径")) 中指定路径时,我遇到了严重崩溃。 没有踪迹。
非常感谢任何建议。
回复:配置 JMP 以运行 Python 代码谢谢贾莫!
添加初始化跟踪(“TRUE”) Python init() 是一个非常有用的调试命令。
我当时使用的是 32 位 Python JMP 15 是 64 位程序,仅支持 64 位 Python。 更改为 64 位 Python 解决了我的问题
以下链接包含有关 Python 安装要求的详细信息
https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/install-python.shtml#
回复:配置 JMP 以运行 Python 代码尝试仅指向 Python 库文件。这在过去对我有用。就像是
Python Init( Path( "C:\Python37-32\DLLs\python.dll" ) );
或 .dll 文件所在的任何位置。
回复:配置 JMP 以运行 Python 代码这两个链接可能会提供一些帮助:
https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/install-python.shtml#
https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/troubleshooting-the-jmp-python-integration.shtml#
尤其是后者。 尝试添加初始化跟踪(“TRUE”)到 Python init(),如果 JMP 在错误的位置查找 python,它可能会为您提供一些附加信息。