activities
latest
false
- 概述
- 加密
- 数据库
- Java
- Python
- 网页 API
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
开发者活动
上次更新日期 2026年5月15日
UiPath.Python.Activities.PythonScope
为 Python 活动提供作用域并初始化指定 Python 环境的容器。
当“Python 作用域”活动结束时,系统会删除之前加载到该位置的所有 Python 对象。
先决条件
对于 Windows 项目,从 Python 活动包版本 1.9.0 开始, Python 作用域活动会要求您安装 .NET Desktop Runtime 6 及以上版本。
属性
常见
- “显示名称”- 活动的显示名称。
输入
- 库路径(Linux 或版本 >3.9)- 对于 Linux,为
libpython**.so库的路径,包括库名称。对于 Windows(版本 > 3.9),为python**.dll路径,包括库名称。对于 Windows(版本 <= 3.9),请将此字段留空。 - 路径- Python 环境安装文件夹的路径(例如
"C:\Users\<User Name>\AppData\Local\Programs\Python\Python<version>")。此字段仅支持字符串和字符串变量。 - Target - The Python runtime platform. Choose one of the two available options: x86 or x64.
- Timeout - The amount of time in seconds to allow a Python script to run until it is terminated and an exception is thrown.
- “版本”- 此为版本下拉列表,用于从中选择要使用的 Python 版本。默认情况下,该属性设为“自动”。
备注:
当设置为自动时,该属性仅检测 v3.5 及更高版本。
- WorkingFolder - Used to specify the working folder of the scripts executing under the current scope. This field supports only
Stringvariables.
其他
- “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。