如何在模块python安装中摆脱x86_64-linux-gnu-gcc错误

问题描述 投票:1回答:1

嗨伙计们,我正在尝试使用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 linuxmint
1个回答
1
投票

你有一些缺少的依赖关系

  • XZ-devel的
  • bzip2的-devel的

你可以解决这个问题

sudo apt-get install libbz2-dev xz-utils
© www.soinside.com 2019 - 2024. All rights reserved.