Linux新手虚拟环境用pip安装Ansible 1.9.4遇编译及依赖问题求助
Hey there, let's break down and fix the two issues you're facing step by step:
1. 解决python-minimal依赖未满足的问题
Since you mentioned this dependency error pops up for any package installation, it likely means your system is missing the base Python minimal package. Let's install it first:
sudo apt-get update && sudo apt-get install python-minimal
This will ensure the core Python runtime components are in place — even though you're using a virtual environment, it still relies on these system-level Python basics.
2. 解决i686-linux-gnu-gcc: No such file or directory编译错误
The error indicates your system lacks the 32-bit GCC compiler toolchain needed to build some native extensions for Ansible 1.9.4. Install the necessary build tools with:
sudo apt-get install build-essential gcc-multilib
build-essentialinstalls all basic compiling utilities like GCC, make, and related librariesgcc-multilibadds support for cross-compiling to 32-bit architectures, which fixes the missingi686-linux-gnu-gccbinary.
3. 重新安装Ansible 1.9.4
Once the system dependencies are sorted, activate your virtual environment (if it's not already active):
source ~/ansible/ansible1.9.4/bin/activate
Then run the pip install command again:
pip install ansible==1.9.4
This should resolve both errors and let you install Ansible 1.9.4 successfully.
内容的提问来源于stack exchange,提问作者VSK

