Mit offiziellem Beispiel von here habe ich einen Fehler:Wie behebt man einen Python-SpaCy-Fehler: "undefiniertes Symbol: PySlice_AdjustIndices"?
Traceback (most recent call last):
File "/home/vv/PythProj/esi-code/webapp/sp_token.py", line 2, in <module>
from spacy.en import English
File "/home/vv/anaconda3/lib/python3.6/site-packages/spacy/__init__.py", line 4, in <module>
from . import util
File "/home/vv/anaconda3/lib/python3.6/site-packages/spacy/util.py", line 5, in <module>
import regex as re
File "/home/vv/anaconda3/lib/python3.6/site-packages/regex.py", line 394, in <module>
import _regex_core
File "/home/vv/anaconda3/lib/python3.6/site-packages/_regex_core.py", line 21, in <module>
import _regex
ImportError: /home/vv/anaconda3/lib/python3.6/site-packages/_regex.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PySlice_AdjustIndices
Wie kann ich es beheben? Vielen Dank für die Hilfe Zusätzliche Informationen: für Befehl: conda search "^python$"
Fetching package metadata .........
python 1.0.1 0 conda-forge
1.0.1 0 defaults
... // closely 50 tuples
3.6.1 0 defaults
3.6.1 1 conda-forge
3.6.1 2 conda-forge
3.6.1 2 defaults
für Befehl:
python --version
Python 3.6.0 :: Anaconda custom (64-bit)
für Befehl:
pip --version
pip 9.0.1 from /home/vv/anaconda3/lib/python3.6/site-packages (python 3.6)
Haben Sie sich bewusst für Anakonda entschieden? Wenn nicht von einem sauberen virtualenv starten. Es wäre auch nützlich, wenn Sie Ihre Frage mit der OS-Version und der Ausgabe von 'python --version' und' pip --version' bearbeiten –