Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python-config missing

Tags:

python

I'm installing a program that requires I have python-config installed. The only problem is that I do not currently have python-config, and I cannot seem to figure out how to get it.

After searching around, I can supposedly install it via:

yum install python-devel

However, after doing so, python-config still does not exist.

I am currently using Python 2.4 on a cluster running CentOS 5.2.

Any help would be greatly appreciated!

like image 358
gjenness Avatar asked May 02 '12 02:05

gjenness


2 Answers

Run: pip install python-config

It would be installed and added to PATH.

like image 51
VitalyB Avatar answered Oct 12 '22 02:10

VitalyB


Maybe it installed the file somewhere else.

First do:

         which python

on command line to find where the executable file is located.

Second:

Compare the installation file folder to see if it is in the same place.

Third:

if not you can either move it to the same folder or use the executable pointed by your file by calling it from the top of your scripts. It should look something like this:

       #!/usr/bin/Python-2.7.11

Resist changing the python version of your cluster, calling it from your script with a locally installed version seems to be the best solution.

like image 27
Beatriz Kanzki Avatar answered Oct 12 '22 00:10

Beatriz Kanzki