Skip to content

Instantly share code, notes, and snippets.

@msymt
Last active April 25, 2020 03:10
Show Gist options
  • Save msymt/d1caa85b438d29fe2929393bc3eacb6c to your computer and use it in GitHub Desktop.
Save msymt/d1caa85b438d29fe2929393bc3eacb6c to your computer and use it in GitHub Desktop.
pipがぶっ壊れた時用

エラー内容

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

対処法

$ sudo python3 -m pip install -I pip
$ pip --version
pip 19.3.1 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)

役立ったコマンド

$ which -a [name]

参考

pipをアップグレードしてからTracebackが現れるようになった https://teratail.com/questions/208422

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment