0

我正在尝试在python 3.6 Docker 映像上安装textacy。无缘无故,进程最终崩溃并带有“Killed”语句

这是命令:

点安装文本

这是日志:

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
4

1 回答 1

0

我终于发现:Killed不是由于文本,而是由于我的 Docker 限制。Docker 需要至少 2Go 的 RAM 才能使 textacy 正常工作。

我只有 512 Mo 的 RAM,因此它崩溃了。将 RAM 增加到 2 Go 解决了我的问题!

于 2019-05-15T14:27:28.943 回答