在执行Python脚本时报如下错误: UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-78: ordinal not in range(128) 解决办法: 在python脚本中开头处加上以下两句代码即可: reload(sys)sys.setdefaultencoding('utf8')
一.configure 报错 1.错误类型: Configure: error: Please reinstall the libcurl distribution-easy.h should be in <curl-dir>/include/curl/ 解决方法: sudo apt-get install libcurl4-gnutls-dev libcurl4-openssl-dev 2.错误类型: configure: error: sasl.h not found! 解决方法: sud
老司机也差点翻船... 升级16.04的时候,将默认启动管理器(default display manager)选为gm3(gnome3)了(应该使用默认的lightgm)如果改成gm3,好像是nvidia驱动就不兼容了,所以系统启动时一直卡在这个错误信息:"a start job is running for hold until boot process finishes up" 这个时候是没有终端的,所以无法进行任何操作. 解决方法:通过一个Ubuntu USB启动盘启动系统,选
我的博客 ubuntu常见错误--Could not get lock /var/lib/dpkg/lock解决 通过终端安装程序sudo apt-get install xxx时出错: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is a