wechatpy库github源码地址:https://github.com/jxtech/wechatpy
1.安装 cryptography pip install cryptography>=0.8.2 (库作者推荐);
或者安装 PyCrypto pip install pycrypto>=2.6.1。
如果报 fatal error: Python.h: No such file or directory,请先安装对应python版本的dev库,如python2.7-dev: sudo apt-get install python2.7-dev 。此问题参考了这里。
Tips: Windows 用户请先安装 PyCrypto 的二进制包后再使用 pip 安装 wechatpy 。 PyCrypto Windows 的二进制包可以在这里下载。
2.安装wechatpy:pip install wechatpy
3.升级版本命令 :pip install -U wechatpy
附在线文档:
http://wechatpy.readthedocs.io/zh_CN/master/index.html