解决AttributeError: module 'sys' has no attribute 'setdefaultencoding'
Python 3 系统默认使用的就是utf 8编码, 就不需要sys.setdefaultencoding "utf 8" 这段代码, 而且Python 3的sys库里面已经没有setdefaultencoding 函数。
Python 3 系统默认使用的就是utf 8编码, 就不需要sys.setdefaultencoding "utf 8" 这段代码, 而且Python 3的sys库里面已经没有setdefaultencoding 函数。
报错: AttributeError module 'time' has no attribute 'clock' 解决方法: python3.8不支持 clock 了,用time.perf counter 替换就可以了。
具体命令如下: pip freeze requirements.txt 导出所有包 pip uninstall r requirements.txt y 删除所有包
dpkg l 命令可以浏览所有安装的包,其中 rc 状态的包即卸载了包却保留了配置文件。如果想要完整删除所有 rc 状态的包一个一个删还是很麻烦的,所以可以使用以下命令进行清理。 dpkg l | grep ^rc | cut d' ' f3 | sudo xargs dpkg purge 使用实例 niu@niu:~/download/wordpress$ d
在linux 中用一下命令安装的软件: ./configure && make && make install 需要删除可以在该目录执行: make uninstall
网上都是centos的解决办法: yum install libcap devel 基本没有网站提及ubuntu怎么办。 ubuntu的安装方法如下: apt get install libcap dev
网上的教程都是编译安装,不用那么麻烦,用apt就可以直接安装。 apt get install libuv1