# Conda 安装

{% hint style="warning" %}
仅在你已有 Conda 时使用。若没有，使用 [Pip](/docs/zh/kai-shi-shi-yong/install/pip-install.md).
{% endhint %}

选择任一 `pytorch-cuda=11.8,12.1` 用于 CUDA 11.8 或 CUDA 12.1。我们支持 `python=3.10,3.11,3.12`.

```bash
conda create --name unsloth_env python=3.11 -y
conda activate unsloth_env
pip install unsloth
```

如果你打算在 Linux 环境中安装 Conda， [在此阅读](https://docs.anaconda.com/miniconda/), 或运行以下命令：

{% code overflow="wrap" %}

```bash
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm -rf ~/miniconda3/miniconda.sh
~/miniconda3/bin/conda init bash
~/miniconda3/bin/conda init zsh
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://unsloth.ai/docs/zh/kai-shi-shi-yong/install/conda-install.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
