python免安装版使用

python免安装版使用 参考  https://www.pudn.com/news/623d3c5d3c132a36a8100118.html

 https://blog.csdn.net/Lorrey_/article/details/124807850

 

 

1.下载安装包 https://www.python.org/ftp/python/ ,这里以 python-3.9.13-embed-amd64.zip 为例

2.解压后,下载pip工具下载get-pip.py 

 https://pip.pypa.io/en/stable/installing/

3.另存为(get-pip.py)到D:\Python39\get-pip.py

 

 

 下载pip,打开cmd,如:D:\Python39输入cmd

 

D:\Python39>python.exe get-pip.py

 

 

 

4.修改python39._pth文件

 

 

 

 

 5.安装lib,   python.exe .\Scripts\pip3.exe install 模块名

D:\Python39>python.exe .\Scripts\pip3.exe install xlrd

 

 

 6.查看lib, python.exe .\Scripts\pip3.exe list

D:\Python39>python.exe .\Scripts\pip3.exe list

 

 

7.使用

D:\Python39>python.exe

 

 

 

 

 

 

二.配置环境变量

按快捷键win+R后,输入“sysdm.cpl”,然后回车,高级,环境变量

把python目录和scripts目录放进去 ,记得点确定

 

posted @ 2023-08-19 17:46  cxrui  阅读(1202)  评论(0)    收藏  举报