Skip to content

Commit

Permalink
Add tips about cryptography and pycrypto packages in README.md. [ci s…
Browse files Browse the repository at this point in the history
…kip]
  • Loading branch information
messense committed Apr 14, 2015
1 parent 77f37e7 commit 1b627a3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@

pip install -U wechatpy

从 0.8.0 版本开始,wechatpy 消息加解密同时兼容 [cryptography](https://github.com/pyca/cryptography)[PyCrypto](https://github.com/dlitz/pycrypto),
优先使用 cryptography 库。因而不再强制依赖 PyCrypto 库。如需使用消息加解密(企业号平台必须),请自行安装 cryptography 或者 PyCrypto 库:

```bash
# 安装 cryptography
pip install cryptography>=0.8.2
# 或者安装 PyCrypto
pip install pycrypto>=2.6.1
```

> Tips: Windows 用户请先安装 PyCrypto 的二进制包后再使用 pip 安装 wechatpy 。 PyCrypto Windows 的二进制包可以在[这里](http://www.voidspace.org.uk/python/pycrypto-2.6.1/)下载。
## 使用示例
Expand Down

0 comments on commit 1b627a3

Please sign in to comment.