2026/1/8 6:50:52
网站建设
项目流程
互站网官网,免费网站推广软件,查排名网站,全国做网站的1. 软件下载
https://repo.anaconda.com/archive/index.html
wget -c https://repo.anaconda.com/archive/Anaconda3-2025.06-1-Linux-x86_64.sh -P /tmp/package
2. 安装conda
在conda文件的目录下输入命令安装#xff0c;一路回车#xff0c;直到他要求输入yes
bash A…1. 软件下载https://repo.anaconda.com/archive/index.htmlwget -c https://repo.anaconda.com/archive/Anaconda3-2025.06-1-Linux-x86_64.sh -P /tmp/package2. 安装conda在conda文件的目录下输入命令安装一路回车直到他要求输入yesbash Anaconda3-2025.06-1-Linux-x86_64.sh配置环境vim /etc/profile 最后添加 #anaconda3 export PATH/root/anaconda3/bin:$PATH 继续 vim ~/.bashrc #anaconda3 export PATH/root/anaconda3/bin:$PATH刷新source /etc/profile source ~/.bashrc然后conda -V要是正常就安装成功了(base) [rootlocalhost package]# conda -V conda 25.5.1镜像源配置conda配置vim ~/.condarc 添加如下内容 channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ show_channel_urls: true ssl_verify: true allow_conda_downgrades: truepip配置mkdir ~/.pip cd ~/.pip/ vim pip.conf 添加如下内容 [global] index-url http://mirrors.aliyun.com/pypi/simple/ [install] trusted-hostmirrors.aliyun.com常用命令# 创建虚拟环境 conda create -n python python3.10 # 激活环境 conda activate python # 退出环境 conda deactivate # 查看虚拟环境 conda info --envs # 删除虚拟环境 conda remove -n python --all # 删除所有的安装包及cache(索引缓存、锁定文件、未使用过的包和tar包) conda clean -y --all # 删除pip的缓存 rm -rf ~/.cache/pip