# 更新 Unsloth

### **更新 Unsloth Studio**

使用相同的安装命令进行更新。

#### **MacOS、Linux、WSL：**

```bash
curl -fsSL https://unsloth.ai/install.sh | sh
```

#### **Windows PowerShell：**

```bash
irm https://unsloth.ai/install.ps1 | iex
```

#### 或者，你也可以使用我们的更新命令：

{% code overflow="wrap" %}

```bash
unsloth studio update 
```

{% endcode %}

### 更新 Unsloth Core：

```bash
pip install --upgrade unsloth unsloth_zoo
```

#### 在不更新依赖项的情况下更新 Unsloth Core：

<pre class="language-bash" data-overflow="wrap"><code class="lang-bash">pip install --upgrade --force-reinstall --no-cache-dir --no-deps unsloth
<strong>pip install --upgrade --force-reinstall --no-cache-dir --no-deps unsloth_zoo
</strong></code></pre>

#### 要使用旧版 Unsloth：

{% code overflow="wrap" %}

```bash
pip install --force-reinstall --no-cache-dir --no-deps unsloth==2025.1.5
```

{% endcode %}

“2025.1.5”是 Unsloth 之前的旧版本之一。请将其改为我们 [Github 上列出的某个特定版本](https://github.com/unslothai/unsloth/releases).
