View Single Post
Old 12-13-2009, 03:46 AM   #114
llreader
Mesmerist
llreader ought to be getting tired of karma fortunes by now.llreader ought to be getting tired of karma fortunes by now.llreader ought to be getting tired of karma fortunes by now.llreader ought to be getting tired of karma fortunes by now.llreader ought to be getting tired of karma fortunes by now.llreader ought to be getting tired of karma fortunes by now.llreader ought to be getting tired of karma fortunes by now.llreader ought to be getting tired of karma fortunes by now.llreader ought to be getting tired of karma fortunes by now.llreader ought to be getting tired of karma fortunes by now.llreader ought to be getting tired of karma fortunes by now.
 
llreader's Avatar
 
Posts: 331
Karma: 506558
Join Date: Sep 2009
Location: Spain
Device: PRS-600 Silver. Much nicer than I expected.
Quote:
Originally Posted by dynabook View Post
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!

Last edited by llreader; 12-13-2009 at 03:48 AM.
llreader is offline   Reply With Quote