没有提供libpython2.7.so.1.0()

时间:2018-02-12 07:23:30

标签: python linux python-2.7 azure

我在SLES11 SP4机器上安装了python 2.7。安装路径为/opt/python2.7。库libpython.so.1.0位于/opt/python2.7/lib/

我已在/etc/ld.so.conf.d/opt-python2.7.conf中配置了这个。

我使用ldconfig -p | grep libpython2.7检查了库是否存在。这给出了以下结果: libpython2.7.so.1.0 (libc6,x86-64) => /opt/python2.7/lib/libpython2.7.so.1.0 libpython2.7.so (libc6,x86-64) => /opt/python2.7/lib/libpython2.7.so

所以我相信linux能够正确定位库。

但是,每当我尝试使用zypper in azure-cli安装一个软件包时,每次都会出现以下错误:

Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides libpython2.7.so.1.0()(64bit) needed by azure-cli-2.0.26-1.el7.x86_64
 Solution 1: do not install azure-cli-2.0.26-1.el7.x86_64
 Solution 2: break azure-cli-2.0.26-1.el7.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c] (c): 1
Resolving dependencies...
Resolving package dependencies...

我不理解,为什么它无法获得这个库。

0 个答案:

没有答案