蘋果電腦自帶Python 2.7.10 這是老版本,已經再也不維護。學習使用的話建議安裝最新的 Python 3.7.0 在Python.org 官方網站下載便可。python
1、安裝pipide
Mac沒有自帶pip,須要自行安裝。安裝第一步:學習
Thegod:~ chengde$ sudo easy_install pip
輸入密碼網站
2、使用pip安裝itchatip
Thegod:~ chengde$ sudo pip install itchat編譯器
============================================================it
在python編譯器裏面加載itchat模塊:import itchatpip
運行語句itchat.login(),在電腦上登陸×××。編譯