1.anaconda常用命令
查看虚拟环境列表 conda env list
创建环境 conda create -n 环境名 python=X.X
激活环境 conda activate 环境名
退出环境 conda deactivate
删除环境 conda remove -n 环境名 --all
2.镜像网址:
豆瓣镜像源:
https://pypi.douban.com/simple/
清华镜像源:
https://pypi.tuna.tsinghua.edu.cn/simple
阿里云镜像源:
http://mirrors.aliyun.com/pypi/simple/
中科大镜像源:
https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学镜像源:
http://pypi.hustunique.com/
山东理工大学镜像源:
http://pypi.sdutlinux.org/
3.在进行pip命令安装时更换镜像源有两种方法
1.安装包时制定镜像源下载
2.切换默认镜像源到制定镜像源
两种方法如下所示:
pip安装时指定镜像源:
pip install 包名 -i https://pypi.doubanio.com/simple/
pip卸载
pip uninstall 包名
conda切换默认下载地址安装功能包:
---------------------
切换默认镜像源地址
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
----------------------
----------------------
切换回官方地址
conda config --remove-key channels
----------------------
conda常用命令