原文:https://www.cnblogs.com/pengyingh/articles/7149530.html
第一步:下載 【zope.interface】并安裝
地址:https://pypi.org/project/zope.interface/
下載后 解壓,終端命令進(jìn)入解壓后 文件夾

image.png
安裝 :sudo python setup.py install
第二步:下載 【Twisted-18.7.0】并安裝
地址:https://twistedmatrix.com/trac/wiki/Downloads
安裝方法 同上
檢查 twisted 是否安裝成功:前往 -> 電腦-> Macintosh HD -【command shift + . 顯示隱藏文件夾】 -> user ->bin -> 打開【Python】 -> 輸入 import twisted ,若無任何提示,則安裝成功
第三步:下載 【chatserver.py】
地址:https://github.com/xiaocai33/Chatting 下載后在 chatting 中找到 chatserver.py 包,拖出來
終端 進(jìn)入文件夾后 輸入 python chatserver.py
看到提示:Iphone Chat server started表示創(chuàng)建成功.

image.png