The bug is found in pip 10.0.0.
In linux you need to modify file: /usr/bin/pip from:
from pip import main
if __name__ == '__main__':
sys.exit(main())
to this:
from pip import __main__
if __name__ == '__main__':
sys.exit(__main__._main())
更多关于Python方面的内容可参考本人博客:老香椿(https://laoxiangchun.cn/tags/Python/)