[pycrypto] python 3, crypto installation issue?

Dave Pawson dave.pawson at gmail.com
Fri May 8 04:23:03 PDT 2015


Linux, as root.
$ pip3 install Crypto
...

Installing collected packages: Crypto, Naked, pyyaml
  Running setup.py install for pyyaml
    checking if libyaml is compilable
    gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1
-DNDEBUG -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.4m -c
build/temp.linux-x86_64-3.4/check_libyaml.c -o
build/temp.linux-x86_64-3.4/check_libyaml.o
    build/temp.linux-x86_64-3.4/check_libyaml.c:2:18: fatal error:
yaml.h: No such file or directory
     #include <yaml.h>
                      ^
    compilation terminated.

    libyaml is not found or a compiler error: forcing --without-libyaml
    (if libyaml is installed correctly, you may need to
     specify the option --include-dirs or uncomment and
     modify the parameter include_dirs in setup.cfg)

Suggestions please?

$pip3 search pyyaml
pyaml                     - PyYAML-based module to produce
                            pretty and readable YAML-
                            serialized data
PyYAML                    - YAML parser and emitter for
                            Python
  INSTALLED: 3.11 (latest)

So it seems I have pyyaml installed?

TiA

-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk


More information about the pycrypto mailing list