可以使用 pip 进行安装:
$ pip install pypinyin
easy_install 安装:
$ easy_install pypinyin
源码安装:
$ python setup.py install
汉字拼音转换工具(Python 版)
使用