版权: 本文由【墨理学AI】原创首发、各位读者大大、敬请查阅、感谢三连
声明: 作为全网 AI 领域 干货最多的博主之一,❤️ 不负光阴不负卿 ❤️
长期使用 conda 创建 N+ 环境之后,如果一段时间不再新增新的环境、刚好电脑磁盘空间不太够用了;那么 conda clean --tarballs 就可以 移除缓存中不再使用的库安装包
conda clean --tarballs
Will remove 641 (3.71 GB) tarball(s).
Proceed ([y]/n)? y
conda rename 使用条件如下
命令示例如下
conda rename -n test123 test321
conda rename --name test123 test321
conda rename -p path/to/test123 test321
conda rename --prefix path/to/test123 test321
Examples:
# Create an environment containing the package 'sqlite':
conda create -n myenv sqlite
# Create an environment (env2) as a clone of an existing environment (env1):
conda create -n env2 --clone path/to/file/env1
conda create -n qwen --clone /home/moli/anaconda3/envs/Yolov8
运行输出如下
conda create -n qwen --clone /home/mo/anaconda3/envs/Yolov8
Retrieving notices: ...working... done
Source: /home/mo/anaconda3/envs/Yolov8
Destination: /home/moli/mo/condaEnvs/envs/qwen
Packages: 23
Files: 67114
Downloading and Extracting Packages:
Downloading and Extracting Packages:
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate qwen
#
# To deactivate an active environment, use
#
# $ conda deactivate
Examples:
conda remove scipy
conda remove -n myenv scipy curl wheel
conda remove -n myenv --all
conda remove -n myenv --all --keep-env
# 创建软链接示例
ln -sf /home/moli/other_disk/huggingface /home/moli/.cache/huggingface
- 作为全网 AI 领域 干货最多的博主之一,❤️ 不负光阴不负卿 ❤️
- ❤️ 如果文章对你有些许帮助、蟹蟹各位读者大大点赞、评论鼓励博主的每一分认真创作