There are few online packages need to be installed for this project
Prerequisites
Make sure the Microsoft VC++ Compiler is installed, so python can compile any dependencies. You can get the compiler from: https://visualstudio.microsoft.com/visual-cpp-build-tools/ Download the installer and select VC++ Build tools in the list.
Setting up Rasa NLU
Stable (Recommended)
The recommended way to install Rasa NLU is using pip which will install the latest stable version of Rasa NLU:
pip install rasa_nlu
Latest (Most recent github)
If you want to use the bleeding edge version you can get it from github:
git clone https://github.com/RasaHQ/rasa_nlu.git
cd rasa_nlu
pip install -r requirements.txt
pip install -e .
Rasa NLU has different components for recognizing intents and entities, most of these will have some additional dependencies.
When you train your model, Rasa NLU will check if all required dependencies are installed and tell you if any are missing.
For more installation information
Go to https://rasa.com/docs/nlu/installation/
Setting up wxpy
wxpy support Python 3.4-3.6, and 2.7 version
To ensure the package can be installed in different Python version
Replace pip
in the commond below to pip3
or pip2
From PyPI with pip:
pip install -U wxpy
From douban IO PyPI source (Recommend for users in China mainland):
pip install -U wxpy -i "https://pypi.doubanio.com/simple/"
For more installation information
Go to https://wxpy.readthedocs.io/zh/latest/#
- Download all files in a same folder.
- Open
chatbot.py
file in any IDE, the IDE I used to run is Spyder. - Change the statement below to chat with different friend
# search the friend with nanme "Jethro", sex is male and city is Qingdao my_friend = bot.friends().search('Jethro', sex=MALE, city='青岛')[0]
- Run it, an QR code will created automatically, use your
Wechat
to scan the QR code and log in. - Start to chat!
Email: [email protected]
Website: https://github.com/JethroLee98/
- 2019.11.29 uploade file