【发布时间】:2019-02-23 01:32:33
【问题描述】:
大家好,我正在尝试使用 pip3 在 linux Mint 上安装 rpy2 python 模块,但出现此错误:
...
/usr/bin/x86_64-linux-gnu-ld: cannot find -llzma
/usr/bin/x86_64-linux-gnu-ld: cannot find -lbz2
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-t481_z1y/rpy2/setup.py';
f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-p7gpudid-record/install-record.txt --single-version-externally-
managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-
build-t481_z1y/rpy2/
我尽我所能,但这个错误仍然存在。我已经应用了此处介绍的可能解决方案 (same error),但没有成功。有人可以帮助我吗?完整的轨道错误可以在这里找到complete error trace
【问题讨论】:
标签: python-3.x pip rpy2 linux-mint