Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows 環境快速部署 Tornado 框架:極簡四步驟

編輯:系統常見問題解答

前置需求

  • Windows 已安裝 Python 2.x(建議 2.7)
    下載:python.org

Python 下載頁面

Python 安裝精靈

步驟 1:下載 Tornado 原始碼

舊版下載點(範例為 1.2.1):
https://github.com/downloads/facebook/tornado/tornado-1.2.1.tar.gz
注意:新版請至 GitHub Releases 或直接 pip install tornado

Tornado 下載

步驟 2:解壓並重命名

  • 解壓至 Python 根目錄(如 C:\Python27\)
  • 將資料夾重命名為 tornado(小寫,無版號)

解壓後重命名

步驟 3:執行安裝

cd C:\Python27\tornado
python setup.py install

執行安裝指令

安裝過程輸出

步驟 4:驗證安裝

> python
>>> import tornado
>>> print(tornado.version)
# 無報錯且印出版本號即成功

驗證匯入成功

現代化建議(2024+)

# 建立虛擬環境
python -m venv venv
venv\Scripts\activate

# 一鍵安裝最新穩定版
pip install tornado

# 驗證
python -c "import tornado; print(tornado.version)"

原文採用手動解壓安裝屬於舊版做法,現代 Python 開發強烈建議使用 pip + 虛擬環境,依賴管理更乾淨、可攜性更高。

Copyright © Windows教程網 All Rights Reserved