Skip to content

Instantly share code, notes, and snippets.

Created Apr 27, 2021
What would you like to do?
pip installation failure
sudo pip install packaging
Traceback (most recent call last):
File "/usr/local/bin/pip", line 7, in <module>
from pip._internal.cli.main import main
File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/", line 10, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/", line 8, in <module>
from pip._internal.cli import cmdoptions
File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/", line 30, in <module>
from pip._internal.utils.hashes import STRONG_HASHES
File "/usr/local/lib/python3.6/site-packages/pip/_internal/utils/", line 2, in <module>
from typing import TYPE_CHECKING, BinaryIO, Dict, Iterator, List, NoReturn
ImportError: cannot import name 'NoReturn'
Exited with code exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment