Quote:
Originally Posted by dynabook
I tried /usr/bin/python2.5 which worked so the PyCrpyto is installed with Python 2.5 and not 2.6. Is there a way to install it under 2.6?
|
Sure, in the pycrypto top directory, where "setup.py" is, try "sudo /usr/bin/python2.6 setup.py install" - On my Mac /usr/bin/python2.6 is a simlink to /System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 (which I deleted).
You can see what is in there with "ls -l /usr/bin/python*"
You can also try "build" before "install", just to test it, but then you have to type "install" afterward to actually install it.
What happened to me is that the 2.6 version of python, for some reason, made pycrypto try to compile with gcc-4.0 (which I don't have - I have gcc-4.2). I still haven't figured out why it did that, but I think it has something to do with the python installer.
If you are on Snow Leopard, I think the installed python is 2.6.1 (at least that is what I get if I run /usr/bin/python).
Good luck!