pip升级10.0.1以后执行python
sudo pip install
会报错linux
ImportError: cannot import name 'Process'
查阅百度,基本都是sys.exit(main())改成sys.exit(main.main()),办法估计全是复制粘贴,根本无用,正确解决方式:shell
from pip import main 改成 from pip._internal import main
便可正常执行pip安装python包,若是不行,退出终端重试一下。bash
fish shell 比自带的/bin/bash好用不少,尤为是选择tab时,会自动列出全部输入可能供其选择,特别方便spa
sudo apt-get install fish
设置默认shell(3种方式).net
1.chsh -s /usr/bin/fish 2.set -g default-command /usr/bin/fish set -g default-shell /usr/bin/fish 3.vi /etc/passwd 把用户默认shell由/bin/bash改为/usr/bin/fish
重启终端打开便可code
linux换成国内源时,提示签名文件无效,没法更新,apt-get update时提示server
“GPG 错误:http://mirrors.aliyun.com/kali kali-rolling InRelease: 下列签名无效”
安装签名文件ip
apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
inconsistent use of tabs and spaces in indentation:缩进错误