admin管理员组文章数量:1626226
pip: 是 Python 包管理工具,该工具提供了对Python 包的查找、下载、安装、卸载的功能。
目前如果你在 python 下载最新版本的安装包,则是已经自带了该工具。
文末有福利
一、Python安装
1.下载Python安装包
地址:Download Python | Python
3.9地址:Python Release Python 3.9.1 | Python
3.8地址:Python Release Python 3.8.6 | Python
3.7地址:Python Release Python 3.7.7 | Python
2.7地址:Python Release Python 2.7.17 | Python
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/pypi/simple/
[install]
trusted-host=mirrors.aliyun
2.cmd中使用命令配置
pip config set global.index-url https://mirrors.aliyun/pypi/simple
3.windows常用包下载地址
https://www.lfd.uci.edu/~gohlke/pythonlibs/
福利来了:
链接:https://pan.baidu/s/1mTSHGE5W0M8fBnWxMYD9_Q
提取码:z24v
版权声明:本文标题:Windows下Python安装并为pip配置阿里镜像 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1728942042a1180901.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论