docs: update zh-tw (#265)

Reviewed-on: https://gitea.com/gitea/docs/pulls/265
Reviewed-by: Lunny Xiao <[email protected]>
Co-authored-by: ifurther <[email protected]>
Co-committed-by: ifurther <[email protected]>
This commit is contained in:
ifurther
2025-09-03 21:00:35 +00:00
committed by techknowlogick
parent 908a27589d
commit cb462089e9
88 changed files with 3545 additions and 3423 deletions
@@ -4,17 +4,17 @@ slug: "conda"
sidebar_position: 25
---
# Conda 软件包注册
# Conda 軟體包註冊
您的用户或组织发布 [Conda](https://docs.conda.io/en/latest/) 软件包。
您的使用者或組織發佈 [Conda](https://docs.conda.io/en/latest/) 軟體包。
## 要求
要使用 Conda 软件包注册表,您需要使用 [conda](https://docs.conda.io/projects/conda/en/stable/user-guide/install/index.html) 命令行工具。
要使用 Conda 軟體包註冊表,您需要使用 [conda](https://docs.conda.io/projects/conda/en/stable/user-guide/install/index.html) 命令行工具。
## 配置软件包注册
## 配置軟體包註冊
注册软件包注册表并提供凭据,请编辑您的 `.condarc` 文件:
註冊軟體包註冊表並提供憑證,請编辑您的 `.condarc` 文件:
```yaml
channel_alias: https://gitea.example.com/api/packages/{owner}/conda
@@ -26,15 +26,15 @@ default_channels:
| 占位符 | 描述 |
| ------- | -------------- |
| `owner` | 软件包的所有者 |
| `owner` | 軟體包的所有者 |
关各个设置的解释,请参阅[官方文](https://conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html)。
關各個設定的解釋,請参阅[官方文](https://conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html)。
如果需要提供凭据,可以将它们作通道 URL 的一部分嵌入(`https://user:[email protected]/...`)。
如果需要提供憑證,可以将它们作通道 URL 的一部分嵌入(`https://user:[email protected]/...`)。
## 发布软件
## 發佈軟體
发布一个软件包,请执行一个HTTP `PUT`操作,求正文中包含软件包内容。
發佈一个軟體包,請執行一个HTTP `PUT`操作,求正文中包含軟體包内容。
```
PUT https://gitea.example.com/api/packages/{owner}/conda/{channel}/{filename}
@@ -42,11 +42,11 @@ PUT https://gitea.example.com/api/packages/{owner}/conda/{channel}/{filename}
| 占位符 | 描述 |
| ---------- | --------------------------------------------------------------------------------------------------- |
| `owner` | 软件包的所有者 |
| `channel` | 软件包的[通道](https://conda.io/projects/conda/en/latest/user-guide/concepts/channels.html)(可 |
| `owner` | 軟體包的所有者 |
| `channel` | 軟體包的[通道](https://conda.io/projects/conda/en/latest/user-guide/concepts/channels.html)(可 |
| `filename` | 文件名 |
使用HTTP基本身份验证的示例请求:
使用HTTP基本身份驗證的範例請求:
```shell
curl --user your_username:your_password_or_token \
@@ -54,11 +54,11 @@ curl --user your_username:your_password_or_token \
https://gitea.example.com/api/packages/testuser/conda/package-1.0.conda
```
如果已经存在同名和版本的软件包,则无法发布软件包。您必先删除有的软件包。
如果已经存在同名和版本的軟體包,則無法發佈軟體包。您必先删除有的軟體包。
## 安装软件
## 安裝軟體
要从软件包注册表中安装软件包,请执行以下命令之一:
要从軟體包註冊表中安裝軟體包,請執行以下命令之一:
```shell
conda install {package_name}
@@ -66,8 +66,8 @@ conda install {package_name}={package_version}
conda install -c {channel} {package_name}
```
| 参数 | 描述 |
| 參數 | 描述 |
| ----------------- | -------------------- |
| `package_name` | 软件包的名 |
| `package_version` | 软件包的版本 |
| `channel` | 软件包的通道(可 |
| `package_name` | 軟體包的名 |
| `package_version` | 軟體包的版本 |
| `channel` | 軟體包的通道(可 |