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)管理环境

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值