Repository navigation
Releases
Releases · ycm50/pytools
pytools v1.0.1
pytools v1.0.1
安装
安装脚本不随发布包分发,先从仓库下载:
iwr https://raw.githubusercontent.com/ycm50/pytools/master/install.ps1 -OutFile install.ps1方式一(推荐,脚本自动下载本页最新发布包):
powershell -ExecutionPolicy Bypass -File .\install.ps1方式二(解压本页的 zip 后离线安装):
powershell -ExecutionPolicy Bypass -File .\install.ps1 -ZipPath .\pytools-v1.0.1-windows-x64.zip安装脚本会把全部二进制装到当前盘根目录下的 pytools 目录,并写入用户 PATH。
安装 Python
pyins 3.12.1
py 3.12.1发布包内容
pytools-v1.0.1-windows-x64.zip 内含 8 个二进制与 README.md(使用说明)。
安装脚本请从 https://raw.githubusercontent.com/ycm50/pytools/master/install.ps1 获取。
pytools v1.0.0 — C++ 重构版
将所有 Python 工具重写为 C++17,消灭 Python 运行时依赖。
8 个独立工具
| 工具 | 作用 |
|---|---|
| py | 运行指定版本 Python REPL/脚本 |
| pip | 运行 pip(自动清华镜像) |
| pyins | 下载安装嵌入式 Python |
| crenv | 创建虚拟环境 |
| install | 安装 requirements.txt |
| uninstall | 卸载 requirements.txt |
| pip-clear | 清除非核心 pip 包 |
| dels | 强制删除文件/目录 |
用法
set PYTOOLS_DRIVE=d
py 3.12.1
pip 3.12.1 install numpy