1通过 喵大师 自动完成安装(推荐)
优先完成喵大师安装后,可以直接把下面的指令交给 喵大师,让它自动完成 Python 安装和 pip 源配置,无需手动操作。
给 喵大师 的完整指令
“请在 Windows 上完成以下操作:
1. 下载 Python 3.14.4(64 位)安装包:https://www.python.org/ftp/python/3.14.4/python-3.14.4-amd64.exe
2. 以静默方式安装 Python 3.14.4,要求:自动添加到系统 PATH、为所有用户安装、解除 Windows 260 字符路径限制。
3. 安装完成后,将 pip 源配置为阿里云国内镜像:
- index-url: https://mirrors.aliyun.com/pypi/simple/
- trusted-host: mirrors.aliyun.com
4. 验证安装结果,输出 `python --version` 和 `pip --version` 的结果,并确认 pip 源已生效。”
1. 下载 Python 3.14.4(64 位)安装包:https://www.python.org/ftp/python/3.14.4/python-3.14.4-amd64.exe
2. 以静默方式安装 Python 3.14.4,要求:自动添加到系统 PATH、为所有用户安装、解除 Windows 260 字符路径限制。
3. 安装完成后,将 pip 源配置为阿里云国内镜像:
- index-url: https://mirrors.aliyun.com/pypi/simple/
- trusted-host: mirrors.aliyun.com
4. 验证安装结果,输出 `python --version` 和 `pip --version` 的结果,并确认 pip 源已生效。”
注意:静默安装需要管理员权限,喵大师 执行时请确保授权。
2手动安装
2.1 安装 Python
第二步:执行安装
- 运行下载好的
python-3.14.4-amd64.exe。 - 关键步骤:在安装界面第一页,务必勾选 以下选项:
- ✅ Add Python 3.14 to PATH
- ✅ Use admin privileges when installing py.exe
- 点击
Install Now,等待安装完成。 - 若出现
Disable path length limit提示,请点击它以解除 260 字符路径限制。
2.2 配置 pip 国内镜像源
在 CMD 或 PowerShell 中执行:
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ pip config set global.trusted-host mirrors.aliyun.com
以上命令将默认源修改为阿里云国内镜像,可极大提升安装速度。
3验证安装
Python 版本验证
python --version
预期输出:Python 3.14.4
pip 镜像验证
pip config list
应包含 global.index-url 配置
附录:手动添加 Python 到 PATH
如果安装时忘记勾选「Add to PATH」,请按照以下步骤操作:
- 右键「此电脑」→「属性」→「高级系统设置」→「环境变量」。
- 在「用户变量」中找到
Path,双击编辑。 - 点击「新建」,添加 Python 安装目录及 Scripts 目录路径。
