Workshop Installation Guide

如何使用和开发微信聊天机器人的系列教程

A workshop to develop & use an intelligent and interactive chat-bot in WeChat

http://www.KudosData.com

by: Sam.Gu@KudosData.com

April 2017 ============= Scan the QR code to become trainer's friend in WeChat ===========>>

Option 1: Use Cloud Platform (Difficulty level: Easy, like being a boss)


In [ ]:
!python --version

In [ ]:
!pip install -U html

In [ ]:
!pip install -U pyqrcode

In [ ]:
!pip install -U config

In [ ]:
!pip install -U backports.tempfile

In [ ]:
!mv docs org_docs

Download and install WeChat API-2


In [ ]:
!yes | pip uninstall itchat
!rm -rf ItChat
!git clone https://github.com/telescopeuser/ItChat.git
!cp -r ItChat/* .
!python setup.py install

Housekeeping after installation


In [ ]:
!rm -rf itchat
!rm -rf ItChat
!rm -rf wxpy
!rm -rf README*
!rm -rf LICENSE
!rm -rf MANIFEST*
!rm -rf mkdocs*
!rm -rf build
!rm -rf dist
!rm -rf docs*
!rm -rf requirements.txt
!rm -rf setup.py
!rm -rf *.egg-info

!mv org_docs docs

In [ ]:
!pip install -U google-api-python-client
!pip install -U gTTS
!apt-get update -y
!apt-get install libav-tools -y --allow-unauthenticated
!avconv -version

If above importing has no error, then installation is successful.

You are now ready to rock! Go to folder: workshop_blog/wechat_tool, open Notebook and follow...


In [ ]:
print('')
print('+-------------------------------------------------------------------------------------------------+')
print('| www.KudosData.com: Google Cloud Datalab Python 2 setup successful!                              |')
print('| You are now ready to rock! Go to folder: workshop_blog/wechat_tool, open Notebook and follow... |')
print('+-------------------------------------------------------------------------------------------------+')

In [ ]: