Custom Search

Friday, April 13, 2012

solution unable to execute gcc: No such file or directory

This is happening when pip is trying to install the
python packages that require a C
compiler to install. How to install dependencies is
dependent upon the linux distribution you are using.

On debian and ubuntu
-------------------------------------
# apt-get install python-dev

then try the pip install again.
If that didn't work, try

# apt-get build-dep package-name

then try the pip install once more.

Note:
pip is trying to install a package from source and
so it is trying to compile C code with gcc but you
don't have the compiler installed.

No comments:

Post a Comment