他无缘无故地被杀了

2024-05-20 00:04:29 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试在python 3.6 Docker映像上安装textacy。无缘无故,进程崩溃了,最后出现了一个“Killed”语句

命令如下:

pip install textacy

日志如下:

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

Tags: pipnetworkxforpackageslevenshteintoolzbuildingsix
1条回答
网友
1楼 · 发布于 2024-05-20 00:04:29

我终于发现:Killed不是因为文字,而是因为我的码头工人限制。Docker需要至少2Go的RAM才能正常工作。你知道吗

我只有512个月的内存,因此它崩溃了。将内存增加到2 Go解决了我的问题!你知道吗

相关问题 更多 >