我正在尝试在 python 3.6 Docker映像上安装 textacy 。无缘无故,该过程最终以“ Killed”语句崩溃
以下是命令:
pip安装文本性
这是日志:
Collecting textacy
Downloading https://files.pythonhosted.org/packages/34/3b/9c5ff72f826ca1a52b151dd58567888c9bebe0a8355ae8619b4d1400c6f2/textacy-0.7.0-py2.py3-none-any.whl (155kB)
[...]
Collecting six>=1.11.0 (from jsonschema<3.1.0,>=2.6.0->spacy>=2.0.12->textacy)
Building wheels for collected packages: pyemd, python-levenshtein, networkx, cytoolz, toolz, pyrsistent
Building wheel for pyemd (setup.py): started
Building wheel for pyemd (setup.py): finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/e4/ba/b0/1f4178a35c916b22fc51dc56f278125d4b8cfb0592e5f0cc24
[...]
Successfully built pyemd python-levenshtein networkx cytoolz toolz pyrsistent
Installing collected packages: numpy, pyemd, scipy, joblib, pyphen, urllib3, chardet, idna, certifi, requests, srsly, scikit-learn, python-levenshtein, tqdm, cachetools, decorator, networkx, cymem, preshed, murmurhash, blis, six, pyrsistent, attrs, jsonschema, wasabi, plac, thinc, spacy, toolz, cytoolz, textacy
Killed
答案 0 :(得分:0)
我终于发现:Killed
不是由于文本原因,而是由于我的Docker限制。 Docker至少需要2Go的RAM才能使文本正常工作。
我只有512 Mo的RAM,因此它崩溃了。将RAM增加到2 Go解决了我的问题!