pip install 报错 TypeError: 'module' object is not callable


$ pip install filetype
Traceback (most recent call last):
  File "/usr/local/bin/pip2", line 11, in 
    sys.exit(main())
TypeError: 'module' object is not callable

绕过这一报错

$ python -m pip install filetype --user

参考链接
https://stackoverflow.com/questions/58451650/pip-no-longer-working-after-update-error-module-object-is-not-callable