Skip to content

Commit

Permalink
Update installation documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Mar 4, 2016
1 parent 44515c4 commit 521702a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,8 @@

## 安装

推荐使用 pip 进行安装:

pip install wechatpy

升级版本:

pip install -U wechatpy

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

```bash
# 安装 cryptography
Expand All @@ -43,6 +35,15 @@ pip install pycrypto>=2.6.1

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

pip install wechatpy

升级版本:

pip install -U wechatpy


## 使用示例

使用示例参见 [examples](examples/)
Expand Down
19 changes: 9 additions & 10 deletions docs/install.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
安装与升级
==========

wechatpy 依赖 six, requests 才能正常运行,目前 wechatpy 支持的 Python 环境有 2.6, 2.7, 3.2, 3.3, 3.4, pypy 和 pypy3。
目前 wechatpy 支持的 Python 环境有 2.6, 2.7, 3.3, 3.4, 3.5, pypy 和 pypy3。

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

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

为了简化安装过程,推荐使用 pip 进行安装::

Expand All @@ -14,12 +22,3 @@ wechatpy 依赖 six, requests 才能正常运行,目前 wechatpy 支持的 Pyt
如果需要安装 GitHub 上的最新代码::

pip install https://github.com/messense/wechatpy/archive/master.zip


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

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

0 comments on commit 521702a

Please sign in to comment.