python Windows embeddable (64-bit) 安装pip步骤

1、下载 Windows embeddable package (64-bit)

Python Releases for Windows | Python.orgicon-default.png?t=LBL2https://www.python.org/downloads/windows/下载后解压缩到一个文件夹,例如:dlls。

2、dlls文件夹中制作一个pip.ini,内容是:

[global]

index-url=http://mirrors.aliyun.com/pypi/simple/

[install]

trusted-host=mirrors.aliyun.com

3、dlls文件夹中制作一个get-pip.py(utf8格式),内容是:

https://bootstrap.pypa.io/get-pip.pyicon-default.png?t=LBL2https://bootstrap.pypa.io/get-pip.py或者从这里下载:

Installation - pip documentation v22.0.dev0icon-default.png?t=LBL2https://pip.pypa.io/en/latest/installation/#get-pip-py

4、修改 python310._pth,去掉import site前的注释,这样 "\lib\site-packages"才会加入sys.path中 。

5、运行这个py:

python get-pip.py

可以看到安装了 pip-21.3.1 setuptools-60.5.0 wheel-0.37.1

Successfully installed pip-21.3.1 setuptools-60.5.0 wheel-0.37.1

6、检查pip安装是否成功:

运行:

python -m pip -V

输出:

pip 21.3.1 from D:\cbq\0freepy\bin\dlls\lib\site-packages\pip (python 3.10)

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值