python 嵌入版安装

python 嵌入版安装

1. 官方下载 python.org

python-3.11.4-embed-amd64.zip

2 解压,建立pip.ini文件

[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

3 下载 https://bootstrap.pypa.io/get-pip.py

4 python get-pip.py 会自动建立lib目录

Scripts 目录
pip.exe
pip3.11.exe
pip3.exe
wheel.exe

5 python进入shell后退出

  import sys
  sys.exit()

6 配置环境变量

设置path d:/python d:/python/Scripts

7 打开python311._pth

python311.zip
.

# Uncomment to run site.main() automatically
#import site

D:\\python\\Lib\\site-packages\\

8 查看安装的包

C:\Users\Administrator>pip list
Package    Version
---------- -------
pip        23.1.2
setuptools 68.0.0
wheel      0.40.0

C:\Users\Administrator>python -m pip list
Package    Version
---------- -------
pip        23.1.2
setuptools 68.0.0
wheel      0.40.0
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值