3

I'm trying to install setuptools on centos 5.6 for python 2.7.1. The system version is python 2.4

I found a similar question here but the solution still brings up the same error: setuptools-0.6c11-py2.7.egg: line 3: exec: python2.7: not found

Python is located in /usr/bin/python2.7.1

Any ideas?

1
  • 1
    I don't get your point. Are you trying to install setuptools for python 2.7.1 while you have python 2.4 installed? Then it is obvious you should upgrade python before. Commented Jun 3, 2011 at 0:14

1 Answer 1

6

Looks like the installer wants to execute python2.7, whereas your binary is called python2.7.1.

Try making a symlink in your /usr/bin/ directory.

sudo ln -s /usr/bin/python2.7.1 /usr/bin/python2.7

Sign up to request clarification or add additional context in comments.

3 Comments

Ah thank you! I should have notice that! Now when I run sh setuptools-0.6c11-py2.7.egg I get the error zipimport.ZipImportError: can't decompress data; zlib not available but in a python interpretor import zlib works just fine
Got a different zlib install and recompiled python and got it working. Thanks!
I had the same problem on Windows. In C:\ncrdev\Python27, I copied python.exe to python2.7.exe and that fixed it too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.