在64位Fedora上安装32位Python

1 投票
1 回答
850 浏览
提问于 2025-04-18 11:03

我查了很多资料,但似乎没有找到有效的解决办法。看起来最有希望的一个是这个链接,从“32位Python”开始。不过,当我运行那里的yum install命令时,出现了

Error:  Multilib version problems found. This often means that the root
       cause is something else and multilib version checking is just
       pointing out that there is a problem. Eg.:

         1. You have an upgrade for glibc which is missing some
            dependency that another package requires. Yum is trying to
            solve this by installing an older version of glibc of the
            different architecture. If you exclude the bad architecture
            yum will tell you what the root cause is (which package
            requires what). You can try redoing the upgrade with
            --exclude glibc.otherarch ... this should give you an error
            message showing the root cause of the problem.

         2. You have multiple architectures of glibc installed, but
            yum can only see an upgrade for one of those architectures.
            If you don't want/need both architectures anymore then you
            can remove the one with the missing update and everything
            will work.

         3. You have duplicate versions of glibc installed already.
            You can use "yum check" to get yum show these errors.

       ...you can also use --setopt=protected_multilib=false to remove
       this checking, however this is almost never the correct thing to
       do as something else is very likely to go wrong (often causing
       much more problems).

       Protected multilib versions: glibc-2.18-11.fc20.i686 != glibc-2.18-12.fc20.x86_64
Error: Protected multilib versions: glibc-headers-2.18-11.fc20.i686 != glibc-headers-2.18-12.fc20.x86_64
Error: Protected multilib versions: glibc-common-2.18-11.fc20.i686 != glibc-common-2.18-12.fc20.x86_64

有没有人知道怎么在64位的电脑上安装32位的Python?我主要是想让一些Vim插件正常工作(需要32位的Python)。

谢谢

1 个回答

0

问题是你已经安装了64位的libc通用库和开发头文件,但你需要安装32位(i686)版本。你可以使用yum或者其他软件包管理工具来指定需要这个版本。或者,你也可以在这里下载这个特定的包,格式是rpm。

撰写回答