11.25备忘

╄→尐↘猪︶ㄣ 提交于 2019-11-27 19:19:03

tg-bot备忘

11.15 

之前的coolq 目录root/coolq   不方便 弃用  能否直接删除?

终端代理:https://segmentfault.com/a/1190000007851022 

 http://blog.csdn.net/jesse_mx/article/details/52863204  popipo 作者已不更新

https://blog.v9gg.com/myweishanli/article/136  genpac 不成功

https://www.hi-linux.com/posts/48321.html proxychains 

 

安装coolq https://cqp.cc/t/34558 

Python版本升级 http://blog.csdn.net/bvl10101111/article/details/53117504 

本机为最新版本3.x  docker仍为旧版本 2.x

Docker 学习 http://www.runoob.com/docker/docker-install-python.html 

 https://yeasy.gitbooks.io/docker_practice/content/image/build.html 

Bot教程 https://github.com/jqqqqqqqqqq/coolq-telegram-bot/issues/10 

 

进入coolq容器 sudo docker exec -it coolq su

Cd  /home/user/coolq

 

 

leon@leon-Lenovo-TianYi-100-14IBD:~$ sudo docker exec -it coolq su

[sudo] leon 的密码: 

root@cfc818f45b2f:/# cd /home/user/coolq

root@cfc818f45b2f:/home/user/coolq# ls coolq

ls: 无法访问'coolq': 没有那个文件或目录

root@cfc818f45b2f:/home/user/coolq# ls

2833152252.lnk  app  bin  conf  coolq-telegram-bot-master  CQA.exe  data

root@cfc818f45b2f:/home/user/coolq# cd 

root@cfc818f45b2f:~# cd /home/user/coolq/coolq-teletram-bot-master

bash: cd: /home/user/coolq/coolq-teletram-bot-master: 没有那个文件或目录

root@cfc818f45b2f:~# cd /home/user/coolq

root@cfc818f45b2f:/home/user/coolq# python3 daemon.py start

python3: can't open file 'daemon.py': [Errno 2] No such file or directory

root@cfc818f45b2f:/home/user/coolq# cd /coolq-telegram-bot-master

bash: cd: /coolq-telegram-bot-master: 没有那个文件或目录

root@cfc818f45b2f:/home/user/coolq# cd

root@cfc818f45b2f:~# cd /home/user/coolq/coolq-telegram-bot-master

root@cfc818f45b2f:/home/user/coolq/coolq-telegram-bot-master# proxychains4 bash

bash: proxychains4: 未找到命令

root@cfc818f45b2f:/home/user/coolq/coolq-telegram-bot-master# python3 daemon.py start

Traceback (most recent call last):

  File "daemon.py", line 7, in <module>

    from telegram.ext import Updater, CommandHandler, InlineQueryHandler,\

ImportError: No module named 'telegram'

root@cfc818f45b2f:/home/user/coolq/coolq-telegram-bot-master# sudo pip3 install -r requirements.txt

sudo: pip3:找不到命令

root@cfc818f45b2f:/home/user/coolq/coolq-telegram-bot-master# pip3 install -r requirements.txt

bash: pip3: 未找到命令

root@cfc818f45b2f:/home/user/coolq/coolq-telegram-bot-master# 

Session terminated, terminating shell... ...terminated.

leon@leon-Lenovo-TianYi-100-14IBD:~$ 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!