windows上安裝 Twisted

來源:互聯網
上載者:User

步驟1:下載Twisted

http://twistedmatrix.com/trac/wiki/Downloads

我下載的是(Twisted-12.3.0.win32-py2.7)

 

步驟2:安裝Twisted

點擊Twisted-12.3.0.win32-py2.7直接運行即可

這時候,運行IDLE,輸入from twisted.internet import reactor,提示不可用。需要裝zope.interface模組並且版本號碼要大於3.6.0

 

步驟3:下載zope

http://pypi.python.org/pypi/zope.interface#downloads

我下載的是zope.interface-3.8.0-py2.7-win32.egg

 

步驟4:安裝zope

http://pypi.python.org/pypi/setuptools

先下載setuptools-0.6c11.win32-py2.7.exe, 安裝setup tools

這是C:\Python27\Scripts下會有一些與easy_install相關的檔案。

如果你已經安裝了easy_install可以忽略上面的步驟。

將zope.interface-3.8.0-py2.7-win32.egg放到 C:\Python27\Scripts目錄下。

在命令列中運行:

C:\>cd Python27\Scripts
C:\Python27\Scripts>easy_install.exe zope.interface-3.8.0-py2.7-win32.egg

關閉剛剛開啟的IDLE,再次開啟並進入IDLE,輸入from twisted.internet import reactor 如沒有錯誤表示安裝成功。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.