python3.4,更新python3.8后,

随便输入一个无效“cmd”  报python错

jdu@jid-R720:/8t_work5/$ khkhkhkh 
Traceback (most recent call last):  
 File "/usr/lib/command-not-found", line 27, in <module>     
        from CommandNotFound.util import crash_guard 
ModuleNotFoundError: No module named 'CommandNotFound'

解决办法

sudo vi /usr/lib/command-not-found 


#!/usr/bin/python3  改
#!/usr/bin/python3.4  指定原来的版本

这就正常了

jdu@jid-R720:/8t_work5/$ khkhkhkh
khkhkhkh:未找到命令

06-05 14:18