Anaconda和Pycharm学习之路
前言
PyCharm环境:PyCharm2021.1
Anaconda环境:1.10.0
一、Anaconda
1、功能简介
(1)Anaconda可以便捷获取包,并且对包能够非常简便进行管理;
(2)允许创建单独的python环境,其中包含不会与其他python环境交互的文件、程序包及其依赖项。
2、资料网站
1)官方指南
3、conda使用指南
1)添加镜像源
有时候下载太慢了,用镜像源好一些。
先用conda config --show看channles里面是否已经添加;
若没有添加镜像源,选择下面(1)、(2)进行即可,我选的是(2);
第(3)步是取消源配置,自行选择决定是否执行。
Note:记得用conda config --set show_channel_urls yes使能启用源哦。
(1)哈工大源
1|conda config --add channels https://mirrors.hit.edu.cn/anaconda/pkgs/main/
2|conda config --add channels https://mirrors.hit.edu.cn/anaconda/pkgs/free/
3|conda config --add channels https://mirrors.hit.edu.cn/anaconda/cloud/conda-forge
4|conda config --add channels https://mirrors.hit.edu.cn/anaconda/cloud/msys2/
5|conda config --set show_channel_urls yes
(2)中科大源
1|conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
2|conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
3|conda config --set show_channel_urls yes
(3)换回默认源【取消这些换源配置】
1|conda config --remove-key channels
2)管理环境
前

最低0.47元/天 解锁文章
13万+

被折叠的 条评论
为什么被折叠?



