Skip to content

Instantly share code, notes, and snippets.

@esc
Created Apr 27, 2021
Embed
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/main.py", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/autocompletion.py", 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/main_parser.py", line 8, in <module>
from pip._internal.cli import cmdoptions
File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.py", line 30, in <module>
from pip._internal.utils.hashes import STRONG_HASHES
File "/usr/local/lib/python3.6/site-packages/pip/_internal/utils/hashes.py", 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