I have a problem. I am trying to install spacy on my linux machine, but it gives me lots of errors with this command:
pip3 install spacy
This is the output I get when I try to install it:
Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-srt_eep7 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools wheel>0.32.0,<0.33.0 Cython cymem>=2.0.2,<2.1.0 preshed>=2.0.1,<2.1.0 murmurhash>=0.28.0,<1.1.0 thinc>=7.0.8,<7.1.0" failed with error code 1 in None
This is relevant output of all the errors that it gives.
I have no idea what to do, but I need it to work with!?
I am running on a Raspberry Pi 3 with Raspbian buster lite.
UPDATE
Now I get this message after downloading the source code and pasting your code in the setup.py and then running it with python /spacy/setup.py
:
Cythonizing sources
Processing kb.pyx
Traceback (most recent call last):
File "/root/.env/bin/cython", line 10, in <module>
sys.exit(setuptools_main())
File "/root/.env/lib/python3.4/site-packages/Cython/Compiler/Main.py", line 840, in setuptools_main
return main(command_line = 1)
File "/root/.env/lib/python3.4/site-packages/Cython/Compiler/Main.py", line 858, in main
result = compile(sources, options)
File "/root/.env/lib/python3.4/site-packages/Cython/Compiler/Main.py", line 780, in compile
return compile_multiple(source, options)
File "/root/.env/lib/python3.4/site-packages/Cython/Compiler/Main.py", line 750, in compile_multiple
context = options.create_context()
File "/root/.env/lib/python3.4/site-packages/Cython/Compiler/Main.py", line 597, in create_context
self.cplus, self.language_level, options=self)
File "/root/.env/lib/python3.4/site-packages/Cython/Compiler/Main.py", line 80, in __init__
from . import Builtin, CythonScope
File "/root/.env/lib/python3.4/site-packages/Cython/Compiler/CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "/root/.env/lib/python3.4/site-packages/Cython/Compiler/UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "/root/.env/lib/python3.4/site-packages/Cython/Compiler/TreeFragment.py", line 17, in <module>
from .Visitor import VisitorTransform
File "Cython/Compiler/Visitor.py", line 17, in init Cython.Compiler.Visitor
File "/root/.env/lib/python3.4/site-packages/Cython/Compiler/ExprNodes.py", line 4724, in <module>
class SliceIndexNode(ExprNode):
File "/root/.env/lib/python3.4/site-packages/Cython/Compiler/ExprNodes.py", line 4922, in SliceIndexNode
"SliceObject", "ObjectHandling.c", context={'access': 'Get'})
File "/root/.env/lib/python3.4/site-packages/Cython/Compiler/Code.py", line 404, in load
return cls(**kwargs)
File "/root/.env/lib/python3.4/site-packages/Cython/Compiler/Code.py", line 648, in __init__
proto = sub_tempita(proto, context, file, name)
File "/root/.env/lib/python3.4/site-packages/Cython/Compiler/Code.py", line 640, in sub_tempita
from ..Tempita import sub
File "/root/.env/lib/python3.4/site-packages/Cython/Tempita/__init__.py", line 4, in <module>
from ._tempita import *
ImportError: /root/.env/lib/python3.4/site-packages/Cython/Tempita/_tempita.cpython-34m.so: undefined symbol: PyFPE_jbuf
Traceback (most recent call last):
File "/root/spaCy/bin/cythonize.py", line 169, in <module>
run(args.root)
File "/root/spaCy/bin/cythonize.py", line 158, in run
process(base, filename, db)
File "/root/spaCy/bin/cythonize.py", line 124, in process
preserve_cwd(base, process_pyx, root + ".pyx", root + ".cpp")
File "/root/spaCy/bin/cythonize.py", line 87, in preserve_cwd
func(*args)
File "/root/spaCy/bin/cythonize.py", line 63, in process_pyx
raise Exception("Cython failed")
Exception: Cython failed
Traceback (most recent call last):
File "setup.py", line 278, in <module>
setup_package()
File "setup.py", line 211, in setup_package
generate_cython(root, "spacy")
File "setup.py", line 134, in generate_cython
raise RuntimeError("Running cythonize failed")
RuntimeError: Running cythonize failed
Any suggestions?