💡
原文中文,约300字,阅读约需1分钟。
📝
内容提要
本文介绍了如何使用 `setup.py` 安装和卸载 Python3 包。安装命令为 `python setup.py install`,卸载命令为 `python setup.py install --record files.txt`,并提供了在 Windows PowerShell 中删除文件的示例。
🎯
关键要点
- 使用命令 `python setup.py install` 安装 Python3 包。
- 使用命令 `python setup.py install --record files.txt` 卸载 Python3 包。
- 在 Windows PowerShell 中,可以使用 `Get-Content files.txt | ForEach-Object {Remove-Item $_ -Recurse -Force}` 删除文件。
➡️