作者:柒捌玖指向标 | 来源:互联网 | 2023-10-12 21:53
pip: 是 Python 包管理工具,该工具提供了对Python 包的查找、下载、安装、卸载的功能。
目前如果你在 python.org 下载最新版本的安装包,则是已经自带了该工具。
文末有福利
一、Python安装
1.下载Python安装包
地址:Download Python | Python.org
3.9地址:Python Release Python 3.9.1 | Python.org
3.8地址:Python Release Python 3.8.6 | Python.org
3.7地址:Python Release Python 3.7.7 | Python.org
2.7地址:Python Release Python 2.7.17 | Python.org

32位系统下载绿色选框,64位凶下载红色选框。
2.安装Python
下载完成后安装,勾选Add python x.xx to PATH,点击Install Now就可以。

点击close就可以

3.查看安装结果
#查看Python版本
python -V
#查看pip版本
pip -V

4.pip升级
pip install --upgrade pip

二、pip配置阿里源镜像
1.使用文件配置
配置文件位置:C:\Users\你的电脑登录用户名\AppData\Roaming文件夹
新建pip.ini配置文件如下图所示:
可以输入pip -V查看你的目录,如图所示


C:\Users\mayn\AppData\Roaming

文件内容
[global]
index-url=http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
2.cmd中使用命令配置
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
3.windows常用包下载地址
https://www.lfd.uci.edu/~gohlke/pythonlibs/
福利来了:

链接:https://pan.baidu.com/s/1mTSHGE5W0M8fBnWxMYD9_Q
提取码:z24v
如果你想一群人一起走,可关注公众号与我互动!

公众号回复py或者python可获取安装包、IDE。