Skip to content

Commit

Permalink
vault backup: 2024-10-25 09:55:55
Browse files Browse the repository at this point in the history
Affected files:
.obsidian/workspace.json
_posts/engineering/2024-08-13-conda环境库信息导出与复原.md
_posts/pool/2024-10-25.md
  • Loading branch information
cmgzn committed Oct 25, 2024
1 parent 60903db commit 026d608
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"state": {
"type": "markdown",
"state": {
"file": "_posts/pool/2024-10-16-as-rag模块拓展思考.md",
"file": "_posts/engineering/2024-08-13-conda环境库信息导出与复原.md",
"mode": "source",
"source": false
},
"icon": "lucide-file",
"title": "2024-10-16-as-rag模块拓展思考"
"title": "2024-08-13-conda环境库信息导出与复原"
}
}
]
Expand Down Expand Up @@ -52,7 +52,7 @@
"state": {
"type": "search",
"state": {
"query": "",
"query": "conda",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
Expand All @@ -73,7 +73,8 @@
"title": "书签"
}
}
]
],
"currentTab": 1
}
],
"direction": "horizontal",
Expand Down Expand Up @@ -197,6 +198,8 @@
},
"active": "1e2086f0928a3cb6",
"lastOpenFiles": [
"_posts/pool/2024-10-25.md",
"_posts/pool/2024-10-16-as-rag模块拓展思考.md",
"_posts/pool/2024-09-05-日记.md",
"_posts/pool/2024-10-18-Pinokio_AI浏览器调研.md",
"_posts/pool/2024-10-18-npm_Node.js探秘.md",
Expand All @@ -207,7 +210,6 @@
"_posts/language",
"_posts/engineering/2024-10-24-ssh-keygen自定义密钥名称.md",
"_posts/debug/2024-10-18-不太安全但管用的docker非root用户权限问题.md",
"_posts/pool/2024-10-16-as-rag模块拓展思考.md",
"_posts/engineering/2024-09-13-pip国内加速.md",
"_posts/engineering/2024-08-13-linux服务器离线安装anaconda.md",
"_posts/engineering/2024-10-15-docker-ubuntu安装教程.md",
Expand All @@ -223,7 +225,6 @@
"_posts/engineering/2024-09-09-linux新机器安装nvidia驱动.md",
"_posts/engineering/2024-09-06-windows无cpu启动stable-diffusion API接口.md",
"_posts/engineering/2024-09-05-免费且私密的联网搜索组件duckduckgo.md",
"_posts/engineering/2024-09-04-windows命令行下载url文件.md",
"assets/img/mrj9tyfxgpwc4ohkdhkq3uu3azxww8g.png",
"assets/img/Dingtalk_20240906094335.jpg",
"assets/img/Dingtalk_20240906103403.jpg",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,21 @@ Conda是一个流行的包管理器和环境管理器,广泛用于Python和其

这将根据`environment.yml`文件中列出的包和版本信息创建一个新的Conda环境。

# 补充
### **用 conda 重新处理整个环境**
如果你希望在同一操作中更新整个环境,包括 Conda 和 `pip` 依赖,你可以直接通过 `conda env update` 命令来更新环境。它会尝试安装在 `environment.yml` 中定义的所有依赖项。

```bash
conda env update --file environment.yml --prune
```

其中 `--prune` 参数会移除环境中不再在 `yml` 文件中列出的包。

### **检查安装结果**
安装完成后,可以通过以下命令确认所有依赖都已安装:

```bash
pip list
```

通过这种方式,你可以确保你的开发环境的一致性和可重复性,无论在何时何地都可以快速地恢复或重建你的工作环境。
7 changes: 7 additions & 0 deletions _posts/pool/2024-10-25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title:
author: X
date: "2024-10-25 09:54:07 +0800"
categories:
tags:
---

0 comments on commit 026d608

Please sign in to comment.