0

Premise, What I want to achieve

When I install the library "dlib", an error occurs and I cannot install it. I would like to know the cause and how to fix it.

source code

pip install dlib 

problem or error message that occurs

Traceback (most recent call last):
  File "/usr/local/bin/pip", line 6, in <module
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

what I tried

1.Install "pkg_resources". ->The following error occurred.

==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 553959 (delta 0), reused 0 (delta 0), pack-reused 553955
Receiving objects: 100% (553959/553959), 243.41 MiB | 244.00 KiB/s, done.
Resolving deltas: 100% (391191/391191), done.
Tapped 3855 casks (3,971 files, 261.2MB).
==> Searching for similarly named formulae...
No similarly named formulae found: No similarly named formulae found.
Error: No available formula or cask with the name "pkg_resources".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

2.Execution of "curl https://bootstrap.pypa.io/ez_setup.py | python" (and "pip install dlib") No module named pkg_resources

3.Downgrade "setuptool" Python Error : No module named pkg_resources

Supplementary information

Mac OSX

Python 3.6

I don't even understand what pkg_resources is in the first place.

0 Answers0