ubuntu---对比工具Meld
Beyond Compare是商业软件,下载地址:http://www.scootersoftware.com/download.php。下载完直接运行或者通过dpkg安装即可。 其实Linux下文本比较工具很多,比如Meld。 安装: sudo apt-get install meld 想要运行直接在命令行中输入meld&,或者绑定在屏幕左侧的Dock栏,直接点击。 @https://blog.csdn.net/ytusdc/article/details/84849518

打开: meld& , 报错如下: Traceback (most recent call last): File “/usr/bin/meld”, line 73, in import meld.conf ImportError: No module named ‘meld’
google,在第二个链接发现答案,https://stackoverflow.com/questions/50783742/can-not-start-meld-on-ubuntu-16-04-as-error-import-meld-conf 有人回答: My guess would be that you have changed your system’s default Python version (Python3 instead of Python2). Two possible solutions: 1.Switch back to Python2. You might not want to do this, as there probably was a reason for switching to Python3. Switching back might result in other programs not working as expected. See command update-alternatives for switching the default Python version. 2.Force meld to use Python2. For doing so, open /usr/bin/meld with root rights in a text editor and change the very first line from: #!/usr/bin/python to: #!/usr/bin/python2 Attention: Whenever meld gets updated, you will have to do that modification again.
看看是不是动了python,在终端下面敲python 如果默认是python3,去usr/bin 目录下面把python软链接改成python2就可以;
或者按照答案的第二种方法把meld文件开头加上一个2,显示的用python2就OK了 @ https://blog.csdn.net/yang332233/article/details/89084481
【. . . . . .本博客仅作个人生活、工作、学习等的日常记录。说明: (1) 内容有参考其他博主、网页等,有因“懒”直接粘贴来,会备注出处。若遇雷同,或忘备注,并无故意抄袭之意,请诸“原主”谅解,很感谢您的辛勤"笔记"可供本人参考学习。 (2) 如遇同行,有参考学习者,因个人学识有限,不保证所写内容完全正确。您对本博文有任何的意见或建议,欢迎留言,感谢指正。 (3) 若您认为本主的全博客还不错,可以点击关注,便于互相学习。 (4) 感谢您的阅读,希望对您有一定的帮助。欢迎转载或分享,但请注明出处,谢谢。. . . . . .】
【作者: Carole0904 ; 出处: https://www.cnblogs.com/carle-09/ 】
浙公网安备 33010602011771号