一、python环境安装包快速下载
国内镜像网站:(官网太慢了)
地址1:https://mirrors.huaweicloud.com/python/
地址2:https://registry.npmmirror.com/binary.html?path=python/
windows下,不论是Intel还是AMD处理器,都下载amd64.exe版本的安装包,安装步骤(勾选添加path和pip)省略。
命令行python -V命令查看是否安装成功
二、python库快速安装
库的安装可以在命令行执行安装
1.查看已安装库命令:pip list
2.查看当前pip源命令 :pip config list
3.永久修改pip源命令:pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
常用的库源镜像地址有: (我用了清华的) 1)http://mirrors.aliyun.com/pypi/simple/ 阿里云 2)https://pypi.mirrors.ustc.edu.cn/simple/ 中国科技大学 3) http://pypi.douban.com/simple/ 豆瓣 4) https://pypi.tuna.tsinghua.edu.cn/simple/ 清华大学 5) http://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学
三、vs code中配置应用
1.打开vscode,点扩展插件选项,搜索python,点安装。
2.随便创建或打开一个python代码文件,在右下角或者按F1选择解释器。
3.选择后就可以正常执行python代码了。
4.如果有用到的库,再用命令安装即可(例如pip install imageio和pip install numpy)。