油气储运网

 找回密码
 立即注册

QQ登录

QQ快速登录

一步迅速开始

pdms培训&项目数字化360网
查看: 5230|回复: 4

求助SPS与python联合编程环境设置

[复制链接]
发表于 2022-4-28 13:21:32 | 显示全部楼层 |阅读模式
10金币

发表于 2022-5-28 16:59:51 | 显示全部楼层
我自己不完整测试
1.安装sps10.5
2.应用破解补丁(此步骤非必须)
3.进入目录C:\Program Files (x86)\DNVGL\SPS 10.5\bin\Help\PDF,双击打开 sps.pdf文件
4.Reference->Python Scripting,有详细介绍如何使用python

点评

原创!: 5.0 很给力!: 5.0
赞一个!: 5.0
原创!: 5 很给力!: 5 赞一个!: 5
对sps和python的交互式开发很感兴趣,终于找到教程了!  发表于 2023-2-4 10:25
发表于 2022-5-29 09:05:03 | 显示全部楼层
安装sps10.5,查看帮助文件,有详细说明。
发表于 2023-2-4 11:03:04 | 显示全部楼层
1. Go to https://www.python.org/.
2. On the Navigation bar, click Downloads.
3. Scroll to the list of release versions, and then click Python 3.6.0 (Release date 2016-12-23).
4. On the Python 3.6.0 page, scroll to the list of installer files, and then select Windows x86
executable installer.
5. When prompted to run or save python-3.6.0.exe, click Run.
6. Select the following options, and then click Customize installation.
    l Install launcher for all users (recommended)
    l Add Python 3.6 to PATH :
7. On the Optional Features screen, select all options, and then click Next.
8. On the Advanced Options screen, select the following options:
    l Install for all users
    l Associate files with Python (requires the py launcher)
    l Create shortcuts for installed applications
    l Add Python to environment variables
9. In the Customize install location box, verify that C:\Program Files (x86)\Python36-32
is the installation location, and then click Install.
10. When the installation is finished, close the Install window.
Finially, to create a .py file with Model Builder
    l In Model Builder, on the toolbar, click the Open Python Script button.
注意:sps目前只支持python3.6.0版本,安装目录只能是C:\Program Files (x86)\
您需要登录后才可以回帖 登录 | 立即注册  

本版积分规则

扫码访问手机版

QQ|关于我们|网站地图|油气储运网 ( 鲁ICP备11007657号-3 )

GMT+8, 2024-11-19 08:27 , Processed in 0.023198 second(s), 9 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回列表