1
錯誤無模塊TCP4 ....發現。 在Windows和Ubuntu 10.04上。 我需要安裝任何新的東西。 我試圖將endpoints.py複製到一個目錄。但不起作用扭曲的python TCP4ServerEndpoint
錯誤無模塊TCP4 ....發現。 在Windows和Ubuntu 10.04上。 我需要安裝任何新的東西。 我試圖將endpoints.py複製到一個目錄。但不起作用扭曲的python TCP4ServerEndpoint
Ubuntu 10.04包含Twisted 10.0.0,但twisted.internet.endpoints
模塊在Twisted 10.1.0中引入。您可以在twistedmatrix.com或PYPI Twisted project page上找到更新的版本。
一旦你安裝了最新版本,這裏是進口路徑TCP4ServerEndpoint類:
from twisted.internet.endpoints import TCP4ServerEndpoint