安装必要软件
Anaconda3
在官网下载,安装时勾选add anaconda3 to my PATH enviroment variable
。
VScode
在官网下载,安装时勾选添加到PATH
,重启使其生效。
git
在官网下载,并配置好个人信息:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
配置 VScode
重启电脑,打开 vscode,下载 python 插件,有需要可以改成中文,参考vscode安利帖。
在 vscode 的菜单中选择:Terminal-new terminal
在出现的终端界面右边选择默认terminal为cmd(重要):
再点+出现新的cmd命令窗口,输入
Conda activate base
激活conda,如果最左边有个(base)说明成功了.
配置清华镜像
如果 conda 和 pip 太慢,可以配置清华镜像:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --setshow_channel_urls yes
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U
Pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple