惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
Security Latest
Security Latest
Simon Willison's Weblog
Simon Willison's Weblog
O
OpenAI News
GbyAI
GbyAI
L
LINUX DO - 最新话题
A
Arctic Wolf
T
Tor Project blog
G
GRAHAM CLULEY
I
InfoQ
博客园_首页
IT之家
IT之家
The Register - Security
The Register - Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
The GitHub Blog
The GitHub Blog
Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
K
Kaspersky official blog
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
U
Unit 42
PCI Perspectives
PCI Perspectives
量子位
P
Palo Alto Networks Blog
S
Securelist
T
Troy Hunt's Blog
博客园 - 【当耐特】
Recorded Future
Recorded Future
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
Engineering at Meta
Engineering at Meta
T
The Blog of Author Tim Ferriss
博客园 - 聂微东
罗磊的独立博客
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
B
Blog RSS Feed
NISL@THU
NISL@THU
C
Cisco Blogs
T
Threatpost
有赞技术团队
有赞技术团队
Forbes - Security
Forbes - Security
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
T
The Exploit Database - CXSecurity.com
Cloudbric
Cloudbric
Cyberwarzone
Cyberwarzone
Google DeepMind News
Google DeepMind News
C
Cyber Attacks, Cyber Crime and Cyber Security

染念的笔记

lens|打造最强的个人LLM聚合网关系统 - 染念的笔记 2025 年终总结 - 染念的笔记 claude code 专栏上线~ - 染念的笔记 一个解决Banana无法生成透明背景的办法 - 染念的笔记 PyTorch pin_memory 和 non_blocking 真正做了什么?从原理到实战全解析 Serenade 发布:动静结合,是把内容写成文件,把发布交还给你 - 染念的笔记 2024年总结🤔 - 染念的笔记 Ubuntu22.04回退系统内核 - 染念的笔记 论国内外博客发展现状|目前可公开的情报02 - 染念的笔记
conda base 环境还原,不用重装法 - 染念的笔记
染念 · 2026-01-07 · via 染念的笔记

最近,偶然发现很多包都被安装到了base环境,我是有一个“洁癖”的人,这样我肯定受不了,何况 base 包越多,初始化的时候就要加载很多时间。

于是我就去搜索方案。

搜的尽是过去的一些解决办法,说什么 conda 没有提供重置base环境的方法啊,需要重装的话,我呸!

当然也搜到了 conda 回滚的方法:conda list --revisions,但是我发现这个方法也不是万能的。

如果 miniconda/anaconda 软件经过多次升级,那所谓的rev 0根本不是最初的形态。

在我的多方调教下,gpt 终于醒悟告诉我,可以批量清除 base 里面通过 pip 安装的包,这样就只剩下默认安装的 defaults 通道,我将处理完的版本和没有被污染的 base 环境进行对比,这个方法是真的对症,处理后非常干净。

如果有人也遇到我这样的问题,可以操作下面的步骤:

  1. 找出所有 pip 装进 base 的包(conda 会标记为 channel=pypi)

注意:我认为这个办法是可以举一反三的,因为我恰好是通过 pip 安装的,而如果遇到conda list,仍然是可以对比channel进行卸载的!

  1. 批量卸载这些 pip 包

如果是 linux,可以让大模型进行转换,这里我就懒得添加了。