日志:实现微信公众号自动问答机器人(待整理)

在阿里云配置自动问答

​ 这是一个用阿里云轻量级云服务器和chatterbot、werobot框架搭建的自动问答公众号——四象太极教学机器人。

已有实践基础

可以在Win10系统、anaconda3下跑起来自动问答程序,并且用自己的语料库

问题分析和思路

系统的数据流图如下:

操作步骤

服务器环境搭建

桌面环境&原程连接

putty日志

1、第一次打开putty弹出:***********************
服务器的主机密钥没有缓存在注册表中。你不能保证服务器就是你认为的那台电脑。服务器的ecdsa-sha -nistp256密钥指纹为:ecdsa-sha -nistp256 2567c:4d:fd:ac:28:bd:e2:8e:5a:f3:27:e7:1d:84:9f:56如果您信任此主机,请按Yes将密钥添加到PuTTY的缓存中并继续连接。如果您希望只连接一次,而不向缓存中添加密钥,请单击No。如果您不信任此主机,请单击“取消”以放弃连接

2、根据博客安装图像界面********************************
https://blog.csdn.net/qq_43551263/article/details/88411955

结果:不能reboot
反馈:ubuntu-desktop is already the newest version (1.361.4).

过程中的小问题
(1)、
apt-get -u dist-upgrade
据说是因为有部份packages的安装版比release版新而出现”The following packages have been kept back”这个问题,解决方法是使用apt-get -u dist-upgrade 统一更新到发布的版本。这条命令会强制更新软件包到最新版本,并自动解决缺少的依赖包

3、centos 尝试上面博客内容失败,有个知识点是包管理器。****************

另外尝试了VNC,stmst统统失败,有两个知识点:
控制台和图形界面的关系
X windows 和各种桌面软件的关系(桌面软件是不是需要其它依赖软件)

下满这部分尝试内容记录:
yum groupinstall “GNOME Desktop” “Graphical Administration Tools”

Failed:
python-urllib3.noarch 0:1.10.2-7.el7

https://blog.csdn.net/m15151850711/article/details/94437642
https://blog.csdn.net/u014487752/article/details/42367621

阿里云教程
root@itcast:/home/admin# startx
hostname: Name or service not known
xauth: (stdin):1: bad display name “itcast:3” in “add” command

X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-128-generic x86_64 Ubuntu
Current Operating System: Linux itcast 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-93-generic root=UUID=e2048966-750b-4795-a9a2-7b477d6681bf ro net.ifnames=0 console=tty0 console=ttyS0,115200n8 quiet
Build Date: 10 August 2018 09:33:05AM
xorg-server 2:1.18.4-0ubuntu0.8 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.33.6
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (–) probed, (**) from config file, () default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(
) Log file: “/var/log/Xorg.3.log”, Time: Mon Nov 18 18:13:56 2019
(==) Using system config directory “/usr/share/X11/xorg.conf.d”

python环境

1、安装git
https://www.cnblogs.com/lfri/p/10460737.html

2、安装wechat-bot
https://github.com/messense/wechat-bot 成功

3、安装python3
https://blog.csdn.net/ZDW_455/article/details/88825399
https://blog.csdn.net/sw1009374593/article/details/85639635

【缺少包,反馈】sudo: add-apt-repository: command not found
【不加sudo就会告诉你安装哪个包了】apt install apt install software-properties-common

应用框架环境

ChatterBot

4、安装chatterbot

****PIP方法安装************** 【错误】ModuleNotFoundError: No module named ‘pip’ 【分析】以为是前面安装python3出了,按下面博客解决走不下去,源码安装又提示这个错误,在”源码安装“模块解决了。 【解决】https://blog.csdn.net/haihonga/article/details/100168691

python -m ensurepip,执行说没有ensurepip,要通过pip安装。。。。。。

*****源码安装******** 【问题】no module named pip 【安装pip】https://www.cnblogs.com/gcgc/p/10126254.html

【分析】执行 git clone https://github.com/gunthercox/ChatterBot.git pip install ./ChatterBot 反馈 Successfully installed ChatterBot-1.1.0 执行 python -m chatterbot --version 反馈 File “/usr/lib/python3.6/configparser.py”, line 959, in getitem r

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值