UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

开发者活动

发行说明

v2.2.1

Release date: June 03, 2026

新特性和改进功能

  • Starting with this version, the Python activity package is compatible with Python 3.14.
  • When added to the designer, the Python Scope activity now detects the Python installations available on the machine. Selecting an installation from the new Installed Python Versions list automatically fills in the Path, Library path, and Target platform properties. This is a design-time feature only; it does not detect installations at runtime.
  • The Python Scope activity now supports Python virtual environments. When the Path property points to a virtual environment, the packages installed in that environment are correctly resolved at runtime.
  • A new Script Data Size Limit (MB) property was added to the Python Scope activity. It controls the maximum size of the data passed to a Python method as arguments. The default value is 25 MB. Arguments exceeding the limit now produce a clear error message instead of crashing the Python process.
  • A new Log Python Output to File (Diagnostic) property was added to the Python Scope activity. When enabled, the output of the Python process is written to local log files, helping you diagnose script issues.
  • The Python activities can now be used in coded workflows.
  • Collections of simple types (for example, String or Int32), such as List and Dictionary objects, passed as arguments to the Invoke Python Method activity are now serialized correctly.
  • Configuration issues, such as an unsupported Python version or a missing library file, now produce clearer validation errors. Providing the full path of the Python executable in the Path property instead of the installation folder is now corrected automatically.
  • The description of the Timeout property now specifies that the value is expressed in seconds.
  • The Python activity package is now available in Romanian.

错误修复

  • Running Python on the 32-bit (x86) target platform did not work.
  • The Python Scope activity froze when the script wrote a high volume of text to the standard output, eventually failing with a misleading "Pipe is broken" error.
  • The Python host process was not terminated when the Timeout of the Python Scope activity elapsed and kept running in the background.
  • Errors occurring in the communication with the Python process were silently discarded and surfaced as generic messages, such as "Error invoking Python method". The error message now includes the underlying cause.

v2.1.0

发布日期:2026 年 3 月 5 日

新特性和改进功能

  • Python 活动包现在支持跨平台项目兼容性。有关设计体验的详细信息,请参阅设计自动化
    重要提示:

    在 Studio Web 中使用时,自动化需要通过 UiPath Assistant 在本地计算机上访问本地安装的 Python 环境。可以在每次运行时直接在 Cloud Serverless 映像上安装 Python 运行时,但并未提供官方支持。

  • 现在,当在“路径”属性中提供 Python 根文件夹时,该活动将执行更彻底的搜索,以找到可执行文件。

重大变更

从 2.1.0 版 Python 活动包开始:

  • 已删除 .NET 4.6.1 支持- 此包版本及所有后续版本与 Windows-Legacy 项目不兼容。仅使用 Windows 或跨平台项目。
  • 已删除“Python 2.7、3.4 和 3.5”支持- 现在仅兼容相应Python.NET运行时支持的 Python 版本。已删除这些版本的Python.Runtime.*.dll二进制文件(x86 和 x64)。

2.1.0 之前的包版本能在以下弃用时间线内继续支持 .NET 4.6.1。

v1.10.0

发行日期:2025 年 4 月 7 日

改进

  • 从该版本开始,Python 活动包将与 Python 3.13 兼容。
  • 与 Python 相关的异常现在具有更好的错误报告和改进的执行可靠性。
  • 与 Python 相关的活动现在会在活动列表中显示 Python 徽标,以便于识别。当启用 Studio 桌面版开关时,这些活动也会显示在 Studio Web 中。

v1.9.0

发布日期:2024 年 12 月 11 日

错误修复

  • 当计算机上未安装 .NET Desktop Runtime 时,Python 作用域会冻结。Python 作用域现在需要安装 .NET 6 Desktop Runtime 或更高版本,而以前它只需要 .NET 6 Desktop Runtime。此外,对于这种情况,我们现在会显示更准确的错误消息。

勘误(于 2025 年 3 月 7 日添加),用于明确之前的发行说明:从 1.9.0 版本开始,Python 活动包支持使用 .NET 8 Runtime 构建的项目。

v1.8.2

发布日期:2024 年 9 月 26 日

错误修复

  • 修复了嵌入式二进制文件的签名。

v1.8.1

发布日期:2024 年 3 月 6 日

新特性和改进功能

Python 活动包现在与 Python 版本 3.12 和 .NET 6 兼容。

v1.7.1

发布日期:2023 年 8 月 11 日

改进

Python 活动包现在与 Python 版本 3.11 兼容。

v1.6.0

发布日期:2022 年 2 月 17 日

错误修复

修复了 UiPath.Python.Activities v1.4.1 不支持 Python v3.10.1 的问题。

v1.4.1

发布日期:2021 年 8 月 25 日

改进

Python 活动包现在与 .NET 5 Windows 兼容。

“Python 作用域”活动现在包含“超时”属性,使用户可以选择允许 Python 脚本运行多长时间,然后终止脚本并引发异常。

已知问题

在 .NET 4.6.1(x64 和 x86)上使用 Python 3.3 时,“运行 Python”不可用。

v1.3.0

发布日期:2021 年 1 月 13 日

改进

现在,我们支持 3.9 版及更低版本的 Python。从 Python 3.5 版开始,无需在 Python 作用域活动中手动选择版本,因为它可以自行确定版本。

此外,您可能会从版本名称中注意到,对于 Python 活动包,我们已切换到语义版本控制。

添加了对 Unicode 字符的支持。

v1.1.7594.35963

发布日期:2020 年 10 月 21 日

错误修复

  • xlwings Python 库一起使用时,加载 Python 脚本活动无法正常工作。

v1.1.6863.33404

发布日期:2018 年 10 月 10 日

新特性和改进功能

我们了解您对机器学习模型的需求,因此改进了 Python 活动包,增加了对 Python x64 的支持。

这一刻终于来临:整个 UiPath 平台已完成本地化,您现可在安装、设计以及执行流程期间尽享真正的沉浸式体验。除英语之外,您现在还可使用日语访问所有内容,包括我们的在线文档。

错误修复

  • 修复了阻止 Python 脚本错误正确显示在 Studio 中的问题。

v1.0.6716.23055

发布日期:2018 年 6 月 4 日

新特性和改进功能

UiPath.Python.Activities是一个新活动包,用于支持直接从工作流运行 Python 脚本和方法。它包含以下活动:

  • 获取 Python 对象 - 检索指定的 Python 脚本中使用的 .NET 类型。
  • Python 作用域 - 为 Python 活动提供作用域的容器。
  • 调用 Python 方法 - 帮助您直接在工作流中运行 Python 脚本中的指定方法。
  • 加载 Python 脚本 - 将您的 Python 代码转换为 PythonObject 变量。
  • 运行 Python 脚本 - 使您能够执行 Python 代码。您可以直接在活动中输入代码或为其提供文件路径。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新