對於處於安全維護狀態的舊Python版本,https://www.python.org/官方僅發布原始程式碼,不發布安裝程式。但是,如果您想要一種簡單的方法在 Windows 上安裝這些版本呢?在這裡,您可以獲得 Python 3.5 及更高版本安全性更新的非官方 Windows 安裝程式。
對於每個 Python 版本,此儲存庫包含以下內容。
這些安裝程式是根據 https://www.python.org/downloads/source/ 上發布的來源發行版建構的,經過修補以修復建置腳本中的一些錯誤並包含所有元件以允許完全離線安裝。對於更多技術人員,請參閱 Notes.md 以獲取有關我如何建立安裝程式以及您如何自行建置它們的更多資訊。
若要安裝.nupkg
套件,請確保已安裝 NuGet 命令列介面。前往包含.nupkg
檔案的目錄。將下列指令中的targetinstallationdirectory
替換為安裝軟體包所需的位置。
對於 64 位元 Python,執行nuget install python -Source %cd% -OutputDirectory targetinstallationdirectory
對於 32 位元 Python,執行nuget install pythonx86 -Source %cd% -OutputDirectory targetinstallationdirectory
對於 64 位元 Python,執行nuget install python -Source $(Get-Location) -OutputDirectory targetinstallationdirectory
對於 32 位元 Python,執行nuget install pythonx86 -Source $(Get-Location) -OutputDirectory targetinstallationdirectory
為了保持該儲存庫的較小大小,Git 歷史記錄將不會保留。所有更新都將透過強制推送進行。如果您分叉此儲存庫並希望更新您的分叉,請參閱 https://stackoverflow.com/questions/9646167/clean-up-a-fork-and-restart-it-from-the-upstream。
這些文件是根據 MIT 許可證提供的。請參閱 LICENSE.txt。
我是 Aohan Dang (https://www.linkedin.com/in/aohan-dang-536643a7/),專業軟體開發人員和 Python 愛好者。