سؤال

I am trying to install a python packages that uses gcc to compile it. I can install it using sudo but not under a VirtualEnv or under Anaconda. I am trying to install it using pip. The error that I get is:

error: command 'gcc' failed with exit status 1

Googling it I found that the usual solution is to install python-dev but I already have it installed.I am using Ubuntu 12.10 64 bits.

Any clues on this?

هل كانت مفيدة؟

المحلول

I could identify the source of my problem and solve it.

The gcc that I was using was not the one from the system, but from another software (MESA). I was sourcing MESA from my .bashrc and MESA carries a version of gcc with it. And that was the reason of the conflict. After removing the sourcing part from the bashrc and restarting the shell, gcc return to work.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top