Python 2.7 已終止支援,並將於 2026 年 1 月 31 日
淘汰。淘汰後,您將無法部署 Python 2.7 應用程式,即使貴機構先前曾使用機構政策重新啟用舊版執行階段的部署作業,也無法部署。現有的 Python 2.7 應用程式在
淘汰日期過後,仍會繼續執行並接收流量。建議您
改用系統支援的最新 Python 版本。
內建第三方程式庫
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁面列出在 App Engine Python 2.7 執行階段中可供使用的內建第三方程式庫,並提供相關說明。如要使用本機開發伺服器進行測試,部分程式庫需要安裝於本機才能使用。
App Engine Python 2.7 執行階段可提供下列多種第三方程式庫,以供應用程式使用:
名稱 |
預設版本 |
支援的版本 |
說明 |
django
| (無) |
「1.2」(已淘汰) 「1.3」(已淘汰) 「1.4」 「1.5」(已淘汰) 「1.9」(已淘汰) 「1.11」 |
功能完善的網路應用程式架構,適用於 Python。 |
enum
| (無) |
「0.9.23」 |
Python 3.4 引進的 enum 模組 Backport。 |
端點 | (無) |
「1.0」 |
App Engine 應用程式中,用於建構 API 的程式庫。 |
flask
| (無) |
「0.12」 |
Flask 是適用於 Python 的微架構,是以 Werkzeug、Jinja 2 為基礎,基於善意而生。 |
futures
| (無) |
「3.0.5」 |
Python 3.2 Futures 的 Backport。 |
grpcio
| (無) |
「1.0.0」 |
高效能通用 RPC 架構。("1.1.0dev is no longer supported. 請改用 1.0.0 版本」)。 |
jinja2
| (無) |
「2.6」 |
方便設計人員使用的現代範本語言,適用於 Python。 |
lxml
| (無) |
「2.3」(已淘汰) 「2.3.5」(已淘汰) 「3.7.3」 |
適用於 C 程式庫 libxml2 和 libxslt 的 Python 式繫結。 |
markupsafe
| (無) |
「0.15」 「0.23」 |
適用於 Python 的 XML/HTML/XHTML 標記安全字串。 |
matplotlib
| (無) |
「1.2.0」 |
2D 繪製程式庫,可產生出版品品質的圖片。 |
MySQLdb
| (無) |
「1.2.4b4」(已淘汰) 「1.2.4」(已淘汰) 「1.2.5」 |
針對 MySQL 的 Python DB API v2.0 相容介面。 |
numpy
| (無) |
「1.6.1」 |
用於陣列處理的一般用途程式庫。 |
PIL
| (無) |
「1.1.7」 |
用於建立與轉換圖片的程式庫。 |
protorpc
| 「1.0」 |
「1.0」 |
實作以 HTTP 為基礎的遠端程序呼叫 (RPC) 服務時所使用的架構。 |
pytz
| 「2017.3」 |
「2016.4」(已淘汰) 「2017.2」(已淘汰) 「2017.3」 |
跨平台時區計算的程式庫。 |
crcmod
| (無) |
「1.7」 |
產生循環冗餘檢查 (CRC) 的程式庫。 |
protobuf
| (無) |
「3.0.0」(Alpha 測試版) |
用來將結構化資料序列化的程式庫。 |
PyAMF
| (無) |
「0.6.1」 「0.7.2」(Alpha 版) |
提供動作訊息格式 (AMF) 功能的程式庫。 |
pycrypto
| (無) |
「2.3」(已淘汰) 「2.6」 「2.6.1」 |
密碼編譯函式的程式庫,例如可產生隨機數字。 |
setuptools
| (無) |
「0.6c11」(已淘汰) 「36.6.0」 |
提供套件和模組探索功能的程式庫。 |
六
| 「1.12.0」 |
「1.9.0」 「1.12.0」 |
py2.x 和 py3 之間的差異摘要 |
ssl
| (無) |
「2.7」(已淘汰) 「2.7.11」 |
安全資料傳輸層 (SSL) 通訊端包裝函式內建模組。 |
ujson
| (無) |
「1.35」 |
UltraJSON 是以純 C 語言編寫的極速 JSON 編碼器與解碼器 |
webapp2
| 「2.3」 |
「2.3」 「2.5.1」(已淘汰) 「2.5.2」 |
輕量的 Python 網路架構。 |
webob
| 「1.1.1」 |
「1.1.1」 「1.2.3」 |
提供 WSGI 要求環境相關包裝函式的程式庫。 |
werkzeug
| 「0.11.10」 |
「0.11.10」 |
WSGI 公用程式庫。 |
yaml
| 「3.10」 |
「3.10」 |
YAML 序列化與還原序列化的程式庫。 |
如要進一步瞭解如何使用上述程式庫,請參閱在 Python 2.7 中使用內建程式庫一文。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-09-04 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eThis document details the third-party libraries available for use with the App Engine Python 2.7 runtime.\u003c/p\u003e\n"],["\u003cp\u003eThe App Engine Python 2.7 runtime offers a variety of libraries, including web frameworks, utility, and data-processing libraries, such as Django, Flask, NumPy, and many others.\u003c/p\u003e\n"],["\u003cp\u003eEach listed library has specified supported versions, and many do not have default versions pre-selected.\u003c/p\u003e\n"],["\u003cp\u003eSome libraries must be installed locally when using the local development server for testing purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe provided content gives both information and specific links for the reader to learn more about how to use these built-in libraries.\u003c/p\u003e\n"]]],[],null,["# Built-in Third-party Libraries\n\nThis page documents and describes built-in third-party libraries that you can\nuse with the App Engine Python 2.7 runtime. Some [libraries require that\nyou install them locally](/appengine/docs/legacy/standard/python/tools/using-libraries-python-27#local_development) when testing with the local development server.\n\nThe App Engine Python 2.7 runtime can provide your application with the\nfollowing third-party libraries:\n\nFor information about how to use these libraries, see\n[Using Built-in Libraries in Python 2.7](/appengine/docs/legacy/standard/python/tools/using-libraries-python-27)."]]