Python levenshtein не устанавливается

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python_Levenshtein error on pip install #1156

python_Levenshtein error on pip install #1156

Comments

Please excuse me if this is the wrong forum. Would appreciate a pointer to the right place, if this is not it.

On Mac OS Big Sur v. 11.6.5. Using the latest python 3 version updated today via Homebrew. In a virtual environment installing with pip install cltk and pip3 install cltk, I get the following error.

(cltk) MacBook-Pro:python_virt fyrmest$ pip3 install cltk
Collecting cltk
Using cached cltk-1.0.24-py3-none-any.whl (845 kB)
Collecting python-Levenshtein=0.12.0
Using cached python-Levenshtein-0.12.2.tar.gz (50 kB)
Preparing metadata (setup.py) . done
Collecting scikit-learn=0.24.2
Using cached scikit_learn-0.24.2-cp39-cp39-macosx_10_13_x86_64.whl (7.3 MB)
Collecting gitpython=3.0
Using cached GitPython-3.1.27-py3-none-any.whl (181 kB)
Collecting nltk=3.5
Using cached nltk-3.7-py3-none-any.whl (1.5 MB)
Collecting requests=2.22.0
Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting fasttext=0.9.1
Using cached fasttext-0.9.2.tar.gz (68 kB)
Preparing metadata (setup.py) . done
Collecting boltons=20.0.0
Using cached boltons-20.2.1-py2.py3-none-any.whl (170 kB)
Collecting spacy=2.3.5
Using cached spacy-2.3.7-cp39-cp39-macosx_10_9_x86_64.whl (10.1 MB)
Collecting gensim=3.8.1
Using cached gensim-3.8.3.tar.gz (23.4 MB)
Preparing metadata (setup.py) . done
Collecting greek-accentuation=1.2.0
Using cached greek_accentuation-1.2.0-py2.py3-none-any.whl (6.8 kB)
Collecting PyYAML=5.4.1
Using cached PyYAML-5.4.1-cp39-cp39-macosx_10_9_x86_64.whl (259 kB)
Collecting stringcase=1.2
Using cached stringcase-1.2.0-py3-none-any.whl
Collecting stanza=1.3.0
Using cached stanza-1.3.0-py3-none-any.whl (432 kB)
Collecting tqdm=4.41.1
Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
Collecting pybind11>=2.2
Using cached pybind11-2.9.2-py2.py3-none-any.whl (213 kB)
Requirement already satisfied: setuptools>=0.7.0 in ./cltk/lib/python3.9/site-packages (from fasttext=0.9.1->cltk) (60.10.0)
Collecting numpy
Using cached numpy-1.22.3-cp39-cp39-macosx_10_14_x86_64.whl (17.6 MB)
Collecting scipy>=0.18.1
Using cached scipy-1.8.0-cp39-cp39-macosx_12_0_universal2.macosx_10_9_x86_64.whl (55.6 MB)
Collecting six>=1.5.0
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting smart_open>=1.8.1
Using cached smart_open-5.2.1-py3-none-any.whl (58 kB)
Collecting gitdb=4.0.1
Using cached gitdb-4.0.9-py3-none-any.whl (63 kB)
Collecting click
Using cached click-8.1.2-py3-none-any.whl (96 kB)
Collecting regex>=2021.8.3
Using cached regex-2022.3.15-cp39-cp39-macosx_10_9_x86_64.whl (288 kB)
Collecting joblib
Using cached joblib-1.1.0-py2.py3-none-any.whl (306 kB)
Collecting charset-normalizer~=2.0.0
Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting urllib3=1.21.1
Using cached urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting idna=2.5
Using cached idna-3.3-py3-none-any.whl (61 kB)
Collecting threadpoolctl>=2.0.0
Using cached threadpoolctl-3.1.0-py3-none-any.whl (14 kB)
Collecting wasabi=0.4.0
Using cached wasabi-0.9.1-py3-none-any.whl (26 kB)
Collecting plac=0.9.6
Using cached plac-1.1.3-py2.py3-none-any.whl (20 kB)
Collecting blis=0.4.0
Using cached blis-0.7.7-cp39-cp39-macosx_10_9_x86_64.whl (5.8 MB)
Collecting srsly=1.0.2
Using cached srsly-1.0.5-cp39-cp39-macosx_10_9_x86_64.whl (179 kB)
Collecting cymem=2.0.2
Using cached cymem-2.0.6-cp39-cp39-macosx_10_9_x86_64.whl (32 kB)
Collecting preshed=3.0.2
Using cached preshed-3.0.6-cp39-cp39-macosx_10_9_x86_64.whl (106 kB)
Collecting catalogue=0.0.7
Using cached catalogue-1.0.0-py2.py3-none-any.whl (7.7 kB)
Collecting murmurhash=0.28.0
Using cached murmurhash-1.0.6-cp39-cp39-macosx_10_9_x86_64.whl (18 kB)
Collecting thinc=7.4.1
Using cached thinc-7.4.5-cp39-cp39-macosx_10_9_x86_64.whl (992 kB)
Collecting torch>=1.3.0
Using cached torch-1.11.0-cp39-none-macosx_10_9_x86_64.whl (129.9 MB)
Collecting protobuf
Using cached protobuf-3.20.0-cp39-cp39-macosx_10_9_x86_64.whl (962 kB)
Collecting emoji
Using cached emoji-1.7.0-py3-none-any.whl
Collecting smmap=3.0.1
Using cached smmap-5.0.0-py3-none-any.whl (24 kB)
Collecting typing-extensions
Using cached typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Using legacy ‘setup.py install’ for fasttext, since package ‘wheel’ is not installed.
Using legacy ‘setup.py install’ for gensim, since package ‘wheel’ is not installed.
Using legacy ‘setup.py install’ for python-Levenshtein, since package ‘wheel’ is not installed.
Installing collected packages: wasabi, stringcase, srsly, plac, murmurhash, greek-accentuation, emoji, cymem, certifi, boltons, urllib3, typing-extensions, tqdm, threadpoolctl, smmap, smart_open, six, regex, PyYAML, python-Levenshtein, pybind11, protobuf, preshed, numpy, joblib, idna, click, charset-normalizer, catalogue, torch, scipy, requests, nltk, gitdb, fasttext, blis, thinc, stanza, scikit-learn, gitpython, gensim, spacy, cltk
Running setup.py install for python-Levenshtein . error
error: subprocess-exited-with-error

× Running setup.py install for python-Levenshtein did not run successfully.
│ exit code: 1
╰─> [34 lines of output]
running install
/Users/fyrmest/python_virt/cltk/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.macosx-11-x86_64-3.9
creating build/lib.macosx-11-x86_64-3.9/Levenshtein
copying Levenshtein/StringMatcher.py -> build/lib.macosx-11-x86_64-3.9/Levenshtein
copying Levenshtein/init.py -> build/lib.macosx-11-x86_64-3.9/Levenshtein
running egg_info
writing python_Levenshtein.egg-info/PKG-INFO
writing dependency_links to python_Levenshtein.egg-info/dependency_links.txt
deleting python_Levenshtein.egg-info/entry_points.txt
writing namespace_packages to python_Levenshtein.egg-info/namespace_packages.txt
writing requirements to python_Levenshtein.egg-info/requires.txt
writing top-level names to python_Levenshtein.egg-info/top_level.txt
reading manifest file ‘python_Levenshtein.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
warning: no previously-included files matching ‘*pyc’ found anywhere in distribution
warning: no previously-included files matching ‘*so’ found anywhere in distribution
warning: no previously-included files matching ‘.project’ found anywhere in distribution
warning: no previously-included files matching ‘.pydevproject’ found anywhere in distribution
adding license file ‘COPYING’
writing manifest file ‘python_Levenshtein.egg-info/SOURCES.txt’
copying Levenshtein/_levenshtein.c -> build/lib.macosx-11-x86_64-3.9/Levenshtein
copying Levenshtein/_levenshtein.h -> build/lib.macosx-11-x86_64-3.9/Levenshtein
running build_ext
building ‘Levenshtein._levenshtein’ extension
creating build/temp.macosx-11-x86_64-3.9
creating build/temp.macosx-11-x86_64-3.9/Levenshtein
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/fyrmest/python_virt/cltk/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c Levenshtein/_levenshtein.c -o build/temp.macosx-11-x86_64-3.9/Levenshtein/_levenshtein.o
clang: error: invalid version number in ‘MACOSX_DEPLOYMENT_TARGET=11’
error: command ‘/usr/bin/clang’ failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> python-Levenshtein

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

The text was updated successfully, but these errors were encountered:

Источник

Читайте также:  Кому нужны php скрипты
Оцените статью