> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Comfy Desktop 中的终端：在构建的环境中运行命令

> 在 Comfy Desktop 构建的 ComfyUI 文件夹中打开 Shell 并启用该构建的 Python 环境，让 pip 等命令作用于该构建。

本页介绍构建页面上的**终端**标签页。安装、添加或连接构建的方法请参阅[构建](https://docs.comfy.org/zh/installation/desktop/usage/instance-management.md)。

## 在终端中运行命令

构建页面上的 **终端** 标签页会在该构建文件夹内的 `ComfyUI` 文件夹中打开 shell。该构建的 Python 环境已激活，因此 `pip` 等命令会作用于该构建。

![独立构建的终端标签页，带编号：1 终端标签页，2 shell 提示符，显示 ComfyUI 文件夹中已激活的 Python 环境](https://mintcdn.com/dripart/9B5KNlbcvxyUwmr7/images/desktop/usage/comfy-desktop-terminal.png?fit=max\&auto=format\&n=9B5KNlbcvxyUwmr7\&q=85\&s=61e94a9ceba69ba141432de7ad22f2fe)

1. **终端标签页**：在构建文件夹内的 `ComfyUI` 文件夹中打开 shell。
2. **Shell 提示符**：以 `(comfyui-venv)` 显示该构建的 Python 环境，因此 `pip` 等命令会作用于该构建。

* 无论 ComfyUI 正在运行还是已停止，终端均可使用。
* 右键点击终端可**复制**、**粘贴**或**全选**。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.