7
votes

Problèmes avec Easy_install Pycrypto

J'essaie d'installer Pycrypto sur OSX avec easy_install et je reçois l'erreur suivante:

easy_install pycrypto
Searching for pycrypto
Reading http://pypi.python.org/simple/pycrypto/
Reading http://pycrypto.sourceforge.net
Reading http://www.pycrypto.org/
Reading http://www.amk.ca/python/code/crypto
Best match: pycrypto 2.3
Downloading http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.3.tar.gz
Processing pycrypto-2.3.tar.gz
Running pycrypto-2.3/setup.py -q bdist_egg --dist-dir /var/folders/3D/3D07iptvHZuzuYaeQDMFIU+++TI/-Tmp-/easy_install-00HgRU/pycrypto-2.3/egg-dist-tmp-BWGYsg
warning: GMP library not found; Not building Crypto.PublicKey._fastmath.
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
src/MD2.c:134: fatal error: error writing to -: Broken pipe
compilation terminated.
lipo: can't open input file: /var/folders/3D/3D07iptvHZuzuYaeQDMFIU+++TI/-Tmp-//ccoXuPRo.out (No such file or directory)
error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1


3 commentaires

Je viens d'installer Xcode 4 avant de le faire, cela pourrait-il l'avoir affecté?


Exécutez-vous sur une machine PPC ?? Vos erreurs se plaignent de ne pas trouver les assembleurs pour eux


Essayez Pypm pour les packages binaires, code.AcreState.com/pypm/pycrypto


4 Réponses :


2
votes

Oui, c'est le résultat de l'installation de Xcode 4. Il essaie de construire pour PPC, bien que Xcode 4 n'a plus les bits pertinents pour cela. Voir cette question pour les façons autour de: https://superuser.com/questions/259278/python-2-6-1-pycrypto-2-pycrypto-3-pyPyPackage-Broken-Pipe-During-build


0 commentaires

10
votes

J'ai ceci dans mon ~ / .bash_profile pour résoudre ce problème: xxx


1 commentaires

Cela fonctionne définitivement, mais au cas où il n'est pas évident, vous devez ouvrir une nouvelle fenêtre de terminal après avoir enregistré le fichier afin que les modifications prennent effet! Toutes les anciennes fenêtres de terminal ne verront pas les modifications.



1
votes

xcode 5.1 xxx


0 commentaires

0
votes

On dirait que cela a un peu plus difficile avec OSX 10.9. Voici les choses supplémentaires que j'ai faites:

Brew Install Install Libffi

Si vous voyez l'avertissement sur la manière dont il est installé "Keg-seulement", cela signifie que HomeBrew ne le lie pas, Donc, vous aurez besoin de fournir quelques informations supplémentaires avec export pkg_config_path = / USR / local / opt / libffi / lib / pkgconfig . À ce moment-là, l'installation souffle car par défaut OSX meurt maintenant sur des drapeaux d'avertissement, supprimez donc ce comportement: xxx

alors vous devriez pouvoir installer avec pip .


0 commentaires