Pip Installing Wheels with Conda GCC/G++
I was trying to pip install
a simple package that contained wheels that needed to be compiled with both GCC and G++. Of course, without using SUDO (i.e., yum install gcc
) meant that I needed to rely on my good friend, Conda:
Now, we aren’t done yet! According to the conda documentation, the compilers are found in /path/to/anaconda/bin
but the gcc
and g++
executables are prefixed with something like x86_64-conda-cos6-linux-gnu-gcc
. So, we’ll need to create some symbolic links to these executables:
Alternatively, you can avoid the symbolic link by setting your environment variables accordingly
Now, my pip install command is able to compile the wheel successfully!