ChestnutHeng / Wudao-dict

有道词典的命令行版本,支持英汉互查和在线查询。
1.13k stars 192 forks source link

在kali下无法使用, 错误信息如下, 请问如何解决? #28

Open JohannesLiu opened 6 years ago

JohannesLiu commented 6 years ago

系统: kali-2018.2 终端: gnome-terminal 指令: root@kali:~/wudao-dict/wudao-dict# ./setup.sh Setup Finished! use wd [OPTION]... [WORD] to query the word. 自动补全会在下次打开命令行时启用 或者手动运行 source ~/.bashrc root@kali:~/wudao-dict/wudao-dict# wd hello Traceback (most recent call last): File "WudaoCommand.py", line 10, in from src.WudaoClient import WudaoClient File "/root/wudao-dict/wudao-dict/src/WudaoClient.py", line 3, in import socket File "/usr/lib/python3.6/socket.py", line 49, in import _socket ModuleNotFoundError: No module named '_socket' Python版本: root@kali:~/wudao-dict/wudao-dict# python3 Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19) [GCC 7.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.

[1]+ Stopped python3

toddyhan commented 6 years ago

@JohannesLiu 你的socket模块没有安装?

toddhan@toddhanPC:~$ python3
Python 3.6.5 (default, Apr  1 2018, 05:46:30) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> 
JohannesLiu commented 4 years ago

好的,感谢!