From 026d608d67877648a2a09ae1639b4b6184f44a81 Mon Sep 17 00:00:00 2001 From: cmgzn Date: Fri, 25 Oct 2024 09:55:55 +0800 Subject: [PATCH] vault backup: 2024-10-25 09:55:55 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Affected files: .obsidian/workspace.json _posts/engineering/2024-08-13-conda环境库信息导出与复原.md _posts/pool/2024-10-25.md --- .obsidian/workspace.json | 13 +++++++------ ...\272\344\270\216\345\244\215\345\216\237.md" | 17 +++++++++++++++++ _posts/pool/2024-10-25.md | 7 +++++++ 3 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 _posts/pool/2024-10-25.md diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index fda5d9e..eaaff8e 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -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环境库信息导出与复原" } } ] @@ -52,7 +52,7 @@ "state": { "type": "search", "state": { - "query": "", + "query": "conda", "matchingCase": false, "explainSearch": false, "collapseAll": false, @@ -73,7 +73,8 @@ "title": "书签" } } - ] + ], + "currentTab": 1 } ], "direction": "horizontal", @@ -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", @@ -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", @@ -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", diff --git "a/_posts/engineering/2024-08-13-conda\347\216\257\345\242\203\345\272\223\344\277\241\346\201\257\345\257\274\345\207\272\344\270\216\345\244\215\345\216\237.md" "b/_posts/engineering/2024-08-13-conda\347\216\257\345\242\203\345\272\223\344\277\241\346\201\257\345\257\274\345\207\272\344\270\216\345\244\215\345\216\237.md" index 3f2be5a..62270e4 100644 --- "a/_posts/engineering/2024-08-13-conda\347\216\257\345\242\203\345\272\223\344\277\241\346\201\257\345\257\274\345\207\272\344\270\216\345\244\215\345\216\237.md" +++ "b/_posts/engineering/2024-08-13-conda\347\216\257\345\242\203\345\272\223\344\277\241\346\201\257\345\257\274\345\207\272\344\270\216\345\244\215\345\216\237.md" @@ -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 +``` + 通过这种方式,你可以确保你的开发环境的一致性和可重复性,无论在何时何地都可以快速地恢复或重建你的工作环境。 diff --git a/_posts/pool/2024-10-25.md b/_posts/pool/2024-10-25.md new file mode 100644 index 0000000..d78c016 --- /dev/null +++ b/_posts/pool/2024-10-25.md @@ -0,0 +1,7 @@ +--- +title: +author: X +date: "2024-10-25 09:54:07 +0800" +categories: +tags: +---