hylarucoder / danmu.fm

douyutv danmu 斗鱼TV 弹幕助手
310 stars 76 forks source link

AttributeError: 'module' object has no attribute 'command' #17

Closed wsy closed 7 years ago

wsy commented 7 years ago

$ danmu.fm -q 3 -m 1 -p . -vvvv http://www.douyu.com/444360 Traceback (most recent call last): File "/usr/local/bin/danmu.fm", line 7, in from danmufm.danmu import main File "/usr/local/lib/python3.4/dist-packages/danmufm/danmu.py", line 76, in @click.command() AttributeError: 'module' object has no attribute 'command'

wsy commented 7 years ago

Environment Ubuntu

wsy commented 7 years ago

已经执行过sudo apt install --reinstall python3-click-package命令了。

难道还要单独apt-get install click?

hylarucoder commented 7 years ago

你好,执行下面的命令即可

pip install click 
hylarucoder commented 7 years ago

可能是Ubuntu安装的Click和这里通过 PIP 版本安装的click不一致.

wsy commented 7 years ago

image

wsy commented 7 years ago

仍然不行

hylarucoder commented 7 years ago

请尝试先卸载掉你的那个ubuntu package 安装的click包