当前位置:网站首页>/home/ljx/miniconda3/compiler_ compat/ld: cannot find crtbeginS. o: There is no such file or directory
/home/ljx/miniconda3/compiler_ compat/ld: cannot find crtbeginS. o: There is no such file or directory
2022-06-21 07:51:00 【Driving without a license】
The specific error reports are as follows. I hope it can help partners who encounter the same problem
pip install ASR-metrics
Collecting ASR-metrics
Downloading ASR_metrics-1.0.12-py3-none-any.whl (4.0 kB)
Collecting python-Levenshtein==0.12.0
Downloading python-Levenshtein-0.12.0.tar.gz (48 kB)
|████████████████████████████████| 48 kB 305 kB/s
Requirement already satisfied: setuptools in /home/ljx/miniconda3/lib/python3.8/site-packages (from python-Levenshtein==0.12.0->ASR-metrics) (52.0.0.post20210125)
WARNING: The candidate selected for download or install is a yanked version: 'python-levenshtein' candidate (version 0.12.0 at https://files.pythonhosted.org/packages/42/a9/d1785c85ebf9b7dfacd08938dd028209c34a0ea3b1bcdb895208bd40a67d/python-Levenshtein-0.12.0.tar.gz#sha256=033a11de5e3d19ea25c9302d11224e1a1898fe5abd23c61c7c360c25195e3eb1 (from https://pypi.org/simple/python-levenshtein/))
Reason for being yanked: Insecure, upgrade to 0.12.1
Building wheels for collected packages: python-Levenshtein
Building wheel for python-Levenshtein (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/ljx/miniconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uqxkstjy/python-levenshtein_80af0b1305294ee7a09c42cee5eb4910/setup.py'"'"'; __file__='"'"'/tmp/pip-install-uqxkstjy/python-levenshtein_80af0b1305294ee7a09c42cee5eb4910/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-q9onqpa8
cwd: /tmp/pip-install-uqxkstjy/python-levenshtein_80af0b1305294ee7a09c42cee5eb4910/
Complete output (165 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/Levenshtein
copying Levenshtein/StringMatcher.py -> build/lib.linux-x86_64-3.8/Levenshtein
copying Levenshtein/__init__.py -> build/lib.linux-x86_64-3.8/Levenshtein
running egg_info
writing python_Levenshtein.egg-info/PKG-INFO
writing dependency_links to python_Levenshtein.egg-info/dependency_links.txt
writing entry points to 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
writing manifest file 'python_Levenshtein.egg-info/SOURCES.txt'
copying Levenshtein/_levenshtein.c -> build/lib.linux-x86_64-3.8/Levenshtein
copying Levenshtein/_levenshtein.h -> build/lib.linux-x86_64-3.8/Levenshtein
running build_ext
building 'Levenshtein._levenshtein' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/Levenshtein
gcc -pthread -B /home/ljx/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ljx/miniconda3/include/python3.8 -c Levenshtein/_levenshtein.c -o build/temp.linux-x86_64-3.8/Levenshtein/_levenshtein.o
Levenshtein/_levenshtein.c: In function ‘levenshtein_common’ in :
Levenshtein/_levenshtein.c:711:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^
Levenshtein/_levenshtein.c:712:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^
Levenshtein/_levenshtein.c: In function ‘hamming_py’ in :
Levenshtein/_levenshtein.c:796:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^
Levenshtein/_levenshtein.c:797:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^
Levenshtein/_levenshtein.c: In function ‘jaro_py’ in :
Levenshtein/_levenshtein.c:840:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^
Levenshtein/_levenshtein.c:841:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^
Levenshtein/_levenshtein.c: In function ‘jaro_winkler_py’ in :
Levenshtein/_levenshtein.c:890:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^
Levenshtein/_levenshtein.c:891:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^
Levenshtein/_levenshtein.c: In function ‘median_common’ in :
Levenshtein/_levenshtein.c:992:43: Warning : Pass on ‘PyBytes_FromStringAndSize’ Of the 1 When a parameter is given to a pointer , The target and pointer symbols are inconsistent [-Wpointer-sign]
result = PyString_FromStringAndSize(medstr, len);
^~~~~~
In file included from /home/ljx/miniconda3/include/python3.8/Python.h:96:0,
from Levenshtein/_levenshtein.c:99:
/home/ljx/miniconda3/include/python3.8/bytesobject.h:51:24: Note appended : Need type ‘const char *’, But the type of the argument is ‘lev_byte * { Or called unsigned char *}’
PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
^~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c: In function ‘median_improve_common’ in :
/home/ljx/miniconda3/include/python3.8/bytesobject.h:87:31: Warning : The target and pointer symbols are inconsistent when initializing the pointer [-Wpointer-sign]
#define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)), \
^
Levenshtein/_levenshtein.c:106:28: Note appended :in expansion of macro ‘PyBytes_AS_STRING’
#define PyString_AS_STRING PyBytes_AS_STRING
^~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:1071:19: Note appended :in expansion of macro ‘PyString_AS_STRING’
lev_byte *s = PyString_AS_STRING(arg1);
^~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:1077:43: Warning : Pass on ‘PyBytes_FromStringAndSize’ Of the 1 When a parameter is given to a pointer , The target and pointer symbols are inconsistent [-Wpointer-sign]
result = PyString_FromStringAndSize(medstr, len);
^~~~~~
In file included from /home/ljx/miniconda3/include/python3.8/Python.h:96:0,
from Levenshtein/_levenshtein.c:99:
/home/ljx/miniconda3/include/python3.8/bytesobject.h:51:24: Note appended : Need type ‘const char *’, But the type of the argument is ‘lev_byte * { Or called unsigned char *}’
PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
^~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c: In function ‘extract_weightlist’ in :
Levenshtein/_levenshtein.c:1115:41: Warning : Compare signed and unsigned integer expressions [-Wsign-compare]
if (PySequence_Fast_GET_SIZE(wlist) != n) {
^~
Levenshtein/_levenshtein.c: In function ‘extract_stringlist’ in :
Levenshtein/_levenshtein.c:1201:16: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
strings[0] = PyString_AS_STRING(first);
^
Levenshtein/_levenshtein.c:1213:18: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
strings[i] = PyString_AS_STRING(item);
^
Levenshtein/_levenshtein.c: In function ‘string_to_edittype’ in :
Levenshtein/_levenshtein.c:1379:13: Warning : Unused variables ‘len’ [-Wunused-variable]
size_t i, len;
^~~
Levenshtein/_levenshtein.c:1378:15: Warning : Unused variables ‘s’ [-Wunused-variable]
const char *s;
^
Levenshtein/_levenshtein.c: In function ‘editops_py’ in :
Levenshtein/_levenshtein.c:1650:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^
Levenshtein/_levenshtein.c:1651:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^
Levenshtein/_levenshtein.c: In function ‘opcodes_py’ in :
Levenshtein/_levenshtein.c:1768:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^
Levenshtein/_levenshtein.c:1769:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^
Levenshtein/_levenshtein.c: In function ‘apply_edit_py’ in :
Levenshtein/_levenshtein.c:1863:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^
Levenshtein/_levenshtein.c:1864:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^
Levenshtein/_levenshtein.c:1878:43: Warning : Pass on ‘PyBytes_FromStringAndSize’ Of the 1 When a parameter is given to a pointer , The target and pointer symbols are inconsistent [-Wpointer-sign]
result = PyString_FromStringAndSize(s, len);
^
In file included from /home/ljx/miniconda3/include/python3.8/Python.h:96:0,
from Levenshtein/_levenshtein.c:99:
/home/ljx/miniconda3/include/python3.8/bytesobject.h:51:24: Note appended : Need type ‘const char *’, But the type of the argument is ‘lev_byte * { Or called unsigned char *}’
PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
^~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:1894:43: Warning : Pass on ‘PyBytes_FromStringAndSize’ Of the 1 When a parameter is given to a pointer , The target and pointer symbols are inconsistent [-Wpointer-sign]
result = PyString_FromStringAndSize(s, len);
^
In file included from /home/ljx/miniconda3/include/python3.8/Python.h:96:0,
from Levenshtein/_levenshtein.c:99:
/home/ljx/miniconda3/include/python3.8/bytesobject.h:51:24: Note appended : Need type ‘const char *’, But the type of the argument is ‘lev_byte * { Or called unsigned char *}’
PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
^~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c: In function ‘subtract_edit_py’ in :
Levenshtein/_levenshtein.c:2060:27: Warning : Compare signed and unsigned integer expressions [-Wsign-compare]
if (!orem && nr == -1) {
^~
In file scope :
Levenshtein/_levenshtein.c:6700:1: Warning :‘lev_opcodes_total_cost’ defined but not used [-Wunused-function]
lev_opcodes_total_cost(size_t nb,
^~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:6655:1: Warning :‘lev_editops_normalize’ defined but not used [-Wunused-function]
lev_editops_normalize(size_t n,
^~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:6630:1: Warning :‘lev_editops_total_cost’ defined but not used [-Wunused-function]
lev_editops_total_cost(size_t n,
^~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:2550:1: Warning :‘lev_u_edit_distance_sod’ defined but not used [-Wunused-function]
lev_u_edit_distance_sod(size_t len, const lev_wchar *string,
^~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:2371:1: Warning :‘lev_edit_distance_sod’ defined but not used [-Wunused-function]
lev_edit_distance_sod(size_t len, const lev_byte *string,
^~~~~~~~~~~~~~~~~~~~~
gcc -pthread -shared -B /home/ljx/miniconda3/compiler_compat -L/home/ljx/miniconda3/lib -Wl,-rpath=/home/ljx/miniconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.8/Levenshtein/_levenshtein.o -o build/lib.linux-x86_64-3.8/Levenshtein/_levenshtein.cpython-38-x86_64-linux-gnu.so
/home/ljx/miniconda3/compiler_compat/ld: cannot find crtbeginS.o: There is no file or directory
/home/ljx/miniconda3/compiler_compat/ld: cannot find -lgcc
/home/ljx/miniconda3/compiler_compat/ld: cannot find -lgcc
collect2: error :ld return 1
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for python-Levenshtein
Running setup.py clean for python-Levenshtein
Failed to build python-Levenshtein
Installing collected packages: python-Levenshtein, ASR-metrics
Running setup.py install for python-Levenshtein ... error
ERROR: Command errored out with exit status 1:
command: /home/ljx/miniconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uqxkstjy/python-levenshtein_80af0b1305294ee7a09c42cee5eb4910/setup.py'"'"'; __file__='"'"'/tmp/pip-install-uqxkstjy/python-levenshtein_80af0b1305294ee7a09c42cee5eb4910/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ytakoa3v/install-record.txt --single-version-externally-managed --compile --install-headers /home/ljx/miniconda3/include/python3.8/python-Levenshtein
cwd: /tmp/pip-install-uqxkstjy/python-levenshtein_80af0b1305294ee7a09c42cee5eb4910/
Complete output (165 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/Levenshtein
copying Levenshtein/StringMatcher.py -> build/lib.linux-x86_64-3.8/Levenshtein
copying Levenshtein/__init__.py -> build/lib.linux-x86_64-3.8/Levenshtein
running egg_info
writing python_Levenshtein.egg-info/PKG-INFO
writing dependency_links to python_Levenshtein.egg-info/dependency_links.txt
writing entry points to 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
writing manifest file 'python_Levenshtein.egg-info/SOURCES.txt'
copying Levenshtein/_levenshtein.c -> build/lib.linux-x86_64-3.8/Levenshtein
copying Levenshtein/_levenshtein.h -> build/lib.linux-x86_64-3.8/Levenshtein
running build_ext
building 'Levenshtein._levenshtein' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/Levenshtein
gcc -pthread -B /home/ljx/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ljx/miniconda3/include/python3.8 -c Levenshtein/_levenshtein.c -o build/temp.linux-x86_64-3.8/Levenshtein/_levenshtein.o
Levenshtein/_levenshtein.c: In function ‘levenshtein_common’ in :
Levenshtein/_levenshtein.c:711:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^
Levenshtein/_levenshtein.c:712:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^
Levenshtein/_levenshtein.c: In function ‘hamming_py’ in :
Levenshtein/_levenshtein.c:796:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^
Levenshtein/_levenshtein.c:797:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^
Levenshtein/_levenshtein.c: In function ‘jaro_py’ in :
Levenshtein/_levenshtein.c:840:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^
Levenshtein/_levenshtein.c:841:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^
Levenshtein/_levenshtein.c: In function ‘jaro_winkler_py’ in :
Levenshtein/_levenshtein.c:890:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^
Levenshtein/_levenshtein.c:891:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^
Levenshtein/_levenshtein.c: In function ‘median_common’ in :
Levenshtein/_levenshtein.c:992:43: Warning : Pass on ‘PyBytes_FromStringAndSize’ Of the 1 When a parameter is given to a pointer , The target and pointer symbols are inconsistent [-Wpointer-sign]
result = PyString_FromStringAndSize(medstr, len);
^~~~~~
In file included from /home/ljx/miniconda3/include/python3.8/Python.h:96:0,
from Levenshtein/_levenshtein.c:99:
/home/ljx/miniconda3/include/python3.8/bytesobject.h:51:24: Note appended : Need type ‘const char *’, But the type of the argument is ‘lev_byte * { Or called unsigned char *}’
PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
^~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c: In function ‘median_improve_common’ in :
/home/ljx/miniconda3/include/python3.8/bytesobject.h:87:31: Warning : The target and pointer symbols are inconsistent when initializing the pointer [-Wpointer-sign]
#define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)), \
^
Levenshtein/_levenshtein.c:106:28: Note appended :in expansion of macro ‘PyBytes_AS_STRING’
#define PyString_AS_STRING PyBytes_AS_STRING
^~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:1071:19: Note appended :in expansion of macro ‘PyString_AS_STRING’
lev_byte *s = PyString_AS_STRING(arg1);
^~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:1077:43: Warning : Pass on ‘PyBytes_FromStringAndSize’ Of the 1 When a parameter is given to a pointer , The target and pointer symbols are inconsistent [-Wpointer-sign]
result = PyString_FromStringAndSize(medstr, len);
^~~~~~
In file included from /home/ljx/miniconda3/include/python3.8/Python.h:96:0,
from Levenshtein/_levenshtein.c:99:
/home/ljx/miniconda3/include/python3.8/bytesobject.h:51:24: Note appended : Need type ‘const char *’, But the type of the argument is ‘lev_byte * { Or called unsigned char *}’
PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
^~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c: In function ‘extract_weightlist’ in :
Levenshtein/_levenshtein.c:1115:41: Warning : Compare signed and unsigned integer expressions [-Wsign-compare]
if (PySequence_Fast_GET_SIZE(wlist) != n) {
^~
Levenshtein/_levenshtein.c: In function ‘extract_stringlist’ in :
Levenshtein/_levenshtein.c:1201:16: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
strings[0] = PyString_AS_STRING(first);
^
Levenshtein/_levenshtein.c:1213:18: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
strings[i] = PyString_AS_STRING(item);
^
Levenshtein/_levenshtein.c: In function ‘string_to_edittype’ in :
Levenshtein/_levenshtein.c:1379:13: Warning : Unused variables ‘len’ [-Wunused-variable]
size_t i, len;
^~~
Levenshtein/_levenshtein.c:1378:15: Warning : Unused variables ‘s’ [-Wunused-variable]
const char *s;
^
Levenshtein/_levenshtein.c: In function ‘editops_py’ in :
Levenshtein/_levenshtein.c:1650:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^
Levenshtein/_levenshtein.c:1651:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^
Levenshtein/_levenshtein.c: In function ‘opcodes_py’ in :
Levenshtein/_levenshtein.c:1768:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^
Levenshtein/_levenshtein.c:1769:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^
Levenshtein/_levenshtein.c: In function ‘apply_edit_py’ in :
Levenshtein/_levenshtein.c:1863:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^
Levenshtein/_levenshtein.c:1864:13: Warning : When assigning a value to a pointer, the target is inconsistent with the pointer symbol [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^
Levenshtein/_levenshtein.c:1878:43: Warning : Pass on ‘PyBytes_FromStringAndSize’ Of the 1 When a parameter is given to a pointer , The target and pointer symbols are inconsistent [-Wpointer-sign]
result = PyString_FromStringAndSize(s, len);
^
In file included from /home/ljx/miniconda3/include/python3.8/Python.h:96:0,
from Levenshtein/_levenshtein.c:99:
/home/ljx/miniconda3/include/python3.8/bytesobject.h:51:24: Note appended : Need type ‘const char *’, But the type of the argument is ‘lev_byte * { Or called unsigned char *}’
PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
^~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:1894:43: Warning : Pass on ‘PyBytes_FromStringAndSize’ Of the 1 When a parameter is given to a pointer , The target and pointer symbols are inconsistent [-Wpointer-sign]
result = PyString_FromStringAndSize(s, len);
^
In file included from /home/ljx/miniconda3/include/python3.8/Python.h:96:0,
from Levenshtein/_levenshtein.c:99:
/home/ljx/miniconda3/include/python3.8/bytesobject.h:51:24: Note appended : Need type ‘const char *’, But the type of the argument is ‘lev_byte * { Or called unsigned char *}’
PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
^~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c: In function ‘subtract_edit_py’ in :
Levenshtein/_levenshtein.c:2060:27: Warning : Compare signed and unsigned integer expressions [-Wsign-compare]
if (!orem && nr == -1) {
^~
In file scope :
Levenshtein/_levenshtein.c:6700:1: Warning :‘lev_opcodes_total_cost’ defined but not used [-Wunused-function]
lev_opcodes_total_cost(size_t nb,
^~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:6655:1: Warning :‘lev_editops_normalize’ defined but not used [-Wunused-function]
lev_editops_normalize(size_t n,
^~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:6630:1: Warning :‘lev_editops_total_cost’ defined but not used [-Wunused-function]
lev_editops_total_cost(size_t n,
^~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:2550:1: Warning :‘lev_u_edit_distance_sod’ defined but not used [-Wunused-function]
lev_u_edit_distance_sod(size_t len, const lev_wchar *string,
^~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:2371:1: Warning :‘lev_edit_distance_sod’ defined but not used [-Wunused-function]
lev_edit_distance_sod(size_t len, const lev_byte *string,
^~~~~~~~~~~~~~~~~~~~~
gcc -pthread -shared -B /home/ljx/miniconda3/compiler_compat -L/home/ljx/miniconda3/lib -Wl,-rpath=/home/ljx/miniconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.8/Levenshtein/_levenshtein.o -o build/lib.linux-x86_64-3.8/Levenshtein/_levenshtein.cpython-38-x86_64-linux-gnu.so
/home/ljx/miniconda3/compiler_compat/ld: cannot find crtbeginS.o: There is no file or directory
/home/ljx/miniconda3/compiler_compat/ld: cannot find -lgcc
/home/ljx/miniconda3/compiler_compat/ld: cannot find -lgcc
collect2: error :ld return 1
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/ljx/miniconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uqxkstjy/python-levenshtein_80af0b1305294ee7a09c42cee5eb4910/setup.py'"'"'; __file__='"'"'/tmp/pip-install-uqxkstjy/python-levenshtein_80af0b1305294ee7a09c42cee5eb4910/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ytakoa3v/install-record.txt --single-version-externally-managed --compile --install-headers /home/ljx/miniconda3/include/python3.8/python-Levenshtein Check the logs for full command output.View the currently used gcc edition
gcc -v
Use built in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.5.0/lto-wrapper
The goal is :x86_64-pc-linux-gnu
Configure to :./configure -enable-checking=release -enable-languages=c,c++ -disable-multilib
Threading model :posix
gcc edition 7.5.0 (GCC)
(base) [email protected]:/usr/local/src/gcc-7.5.0/gcc-Builder-7.5.0$ sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/7.5.0/
cc1 crtfastmath.o libasan.a libcilkrts.so libgomp.spec liblto_plugin.so.0.0.0 libsanitizer.spec libubsan.a
cc1plus crtoffloadbegin.o libasan_preinit.o libcilkrts.spec libitm.a libmpx.a libssp_nonshared.a libubsan.so
collect2 crtoffloadend.o libasan.so libgcc.a libitm.so libmpx.so libstdc++.a lto1
crtbegin.o crtoffloadtable.o libatomic.a libgcc_eh.a libitm.spec libmpx.spec libstdc++fs.a lto-wrapper
crtbeginS.o crtprec32.o libatomic.so libgcc_s.so liblsan.a libmpxwrappers.a libstdc++.so plugin/
crtbeginT.o crtprec64.o libbacktrace.a libgcov.a liblsan.so libmpxwrappers.so libsupc++.a
crtend.o crtprec80.o libcc1.so libgomp.a liblto_plugin.so libquadmath.a libtsan.a
crtendS.o include/ libcilkrts.a libgomp.so liblto_plugin.so.0 libquadmath.so libtsan.so edit
sudo vi ~/.bashrc
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/7.5.0:$LIBRARY_PATH
export LIBRARY_PATH
source ~/.bashrcsuccess
pip install ASR-metrics
Collecting ASR-metrics
Using cached ASR_metrics-1.0.12-py3-none-any.whl (4.0 kB)
Collecting python-Levenshtein==0.12.0
Using cached python-Levenshtein-0.12.0.tar.gz (48 kB)
Requirement already satisfied: setuptools in /home/ljx/miniconda3/lib/python3.8/site-packages (from python-Levenshtein==0.12.0->ASR-metrics) (52.0.0.post20210125)
WARNING: The candidate selected for download or install is a yanked version: 'python-levenshtein' candidate (version 0.12.0 at https://files.pythonhosted.org/packages/42/a9/d1785c85ebf9b7dfacd08938dd028209c34a0ea3b1bcdb895208bd40a67d/python-Levenshtein-0.12.0.tar.gz#sha256=033a11de5e3d19ea25c9302d11224e1a1898fe5abd23c61c7c360c25195e3eb1 (from https://pypi.org/simple/python-levenshtein/))
Reason for being yanked: Insecure, upgrade to 0.12.1
Building wheels for collected packages: python-Levenshtein
Building wheel for python-Levenshtein (setup.py) ... done
Created wheel for python-Levenshtein: filename=python_Levenshtein-0.12.0-cp38-cp38-linux_x86_64.whl size=165877 sha256=7fbed0c45ccfe120dd1a39704fa398b39714d4e26014c990bf6ea2bf9465db9b
Stored in directory: /home/ljx/.cache/pip/wheels/a8/da/22/2970e270912ba623ccac7d516b7411a820c8f2b4252463a605
Successfully built python-Levenshtein
Installing collected packages: python-Levenshtein, ASR-metrics
Successfully installed ASR-metrics-1.0.12 python-Levenshtein-0.12.0
边栏推荐
- 古风排版 (20 分)(测试点4)
- An improvement of the code in the article "Walkthrough: creating paged data access using web form pages" in MSDN
- Sword finger offer 34 A path with a value in a binary tree
- mysql不是内部命令如何解决
- 22 parameter estimation - maximum likelihood estimation method
- 如何让mysql不区分大小写
- dried food! Neuron competitive initialization strategy based on information bottleneck theory
- Realize the industry vision of decentralization, safety, accuracy and real-time price feeding
- [Redis]-[Redis底层数据结构]-字典
- Redis cache use case
猜你喜欢

The concept of tree

卧槽,一行代码就可将网页直接转pdf保存下来(pdfkit)

How can we make millions a year now?

Upgrade Jenkins steps and problems encountered

面试鸭 面试刷题 网站系统源码

2021-06-17 STM32F103 USART serial port code using firmware library

How can we make millions a year now?

Software download method

Interview duck interview brush question website system source code

Flutter returns to the black screen of the previous page
随机推荐
unity里现实摄像头运镜并LookAt到物体前方 基于Dotween
Market trend report, technical innovation and market forecast of inorganic microporous adsorbents in China
动态规划解决打家劫舍问题
2021-06-17 STM32F103 USART串口代码 使用固件库
2021-07-28 STM32F103 configuration information
一元多项式的乘法与加法运算 (20 分)
PostgreSQL database firstborn - background first-class citizen process startupdatabase startupxlog function enters recovery mode
A shell script to realize automatic expiration of Prometheus push gateway indicators
Rdkit | fragment decomposition of drug molecules
Permission management
JVM内存模型概念
Practical application cases of digital Twins - coal mine
Research Report on market supply and demand and strategy of shuttleless loom industry in China
24 parameter estimation interval estimation of two population parameters
群晖DSM7添加套件源
复数四则运算(二十三行简洁代码)
ANSA二次开发 - 外部程序采用socket与ANSA实现通信
图解 Google V8 # 14:字节码(二):解释器是如何解释执行字节码的?
Detailed explanation of deep learning technology for building an image search engine that can find similar images
2021-06-16 STM32F103 EXTI 中斷識別 使用固件庫