# pip install paramiko install fails.

**URL:** <https://forum.ansible.com/t/pip-install-paramiko-install-fails/19812>\
**Category:** Ansible Project\
**Created:** [November 19, 2015, 11:01pm UTC](https://forum.ansible.com/t/pip-install-paramiko-install-fails/19812 "2015-11-19T23:01:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chandra\_Kumar\_Bitra](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@Chandra\_Kumar\_Bitra](https://forum.ansible.com/u/Chandra_Kumar_Bitra)\
**Post date:** [November 19, 2015, 11:01pm UTC](https://forum.ansible.com/t/pip-install-paramiko-install-fails/19812/1 "2015-11-19T23:01:05Z")

</div>

I am trying to install paramiko and it is failing.  
Below is the complete error.

$ sudo pip install paramiko  
Requirement already satisfied (use --upgrade to upgrade): paramiko in /usr/lib/python2.6/site-packages/paramiko-1.16.0-py2.6.egg  
Collecting pycrypto!=2.4,\>=2.1 (from paramiko)  
/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see [https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning](https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning).  
InsecurePlatformWarning  
Using cached pycrypto-2.6.1.tar.gz  
Requirement already satisfied (use --upgrade to upgrade): ecdsa\>=0.11 in /usr/lib/python2.6/site-packages (from paramiko)  
Installing collected packages: pycrypto  
Running setup.py install for pycrypto  
Complete output from command /usr/bin/python -c “import setuptools, tokenize; **file** =‘/tmp/pip-build-MKt3CC/pycrypto/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)( **file** ).read().replace(‘\r\n’, ‘\n’), **file** , ‘exec’))” install --record /tmp/pip-oIpQQJ-record/install-record.txt --single-version-externally-managed --compile:  
running install  
running build  
running build\_py  
creating build  
creating build/lib.linux-x86\_64-2.6  
creating build/lib.linux-x86\_64-2.6/Crypto  
copying lib/Crypto/pct\_warnings.py → build/lib.linux-x86\_64-2.6/Crypto  
copying lib/Crypto/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto  
creating build/lib.linux-x86\_64-2.6/Crypto/Hash  
copying lib/Crypto/Hash/SHA224.py → build/lib.linux-x86\_64-2.6/Crypto/Hash  
copying lib/Crypto/Hash/hashalgo.py → build/lib.linux-x86\_64-2.6/Crypto/Hash  
copying lib/Crypto/Hash/SHA.py → build/lib.linux-x86\_64-2.6/Crypto/Hash  
copying lib/Crypto/Hash/MD4.py → build/lib.linux-x86\_64-2.6/Crypto/Hash  
copying lib/Crypto/Hash/SHA256.py → build/lib.linux-x86\_64-2.6/Crypto/Hash  
copying lib/Crypto/Hash/SHA512.py → build/lib.linux-x86\_64-2.6/Crypto/Hash  
copying lib/Crypto/Hash/HMAC.py → build/lib.linux-x86\_64-2.6/Crypto/Hash  
copying lib/Crypto/Hash/MD2.py → build/lib.linux-x86\_64-2.6/Crypto/Hash  
copying lib/Crypto/Hash/MD5.py → build/lib.linux-x86\_64-2.6/Crypto/Hash  
copying lib/Crypto/Hash/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/Hash  
copying lib/Crypto/Hash/SHA384.py → build/lib.linux-x86\_64-2.6/Crypto/Hash  
copying lib/Crypto/Hash/RIPEMD.py → build/lib.linux-x86\_64-2.6/Crypto/Hash  
creating build/lib.linux-x86\_64-2.6/Crypto/Cipher  
copying lib/Crypto/Cipher/PKCS1\_OAEP.py → build/lib.linux-x86\_64-2.6/Crypto/Cipher  
copying lib/Crypto/Cipher/XOR.py → build/lib.linux-x86\_64-2.6/Crypto/Cipher  
copying lib/Crypto/Cipher/ARC2.py → build/lib.linux-x86\_64-2.6/Crypto/Cipher  
copying lib/Crypto/Cipher/CAST.py → build/lib.linux-x86\_64-2.6/Crypto/Cipher  
copying lib/Crypto/Cipher/DES.py → build/lib.linux-x86\_64-2.6/Crypto/Cipher  
copying lib/Crypto/Cipher/DES3.py → build/lib.linux-x86\_64-2.6/Crypto/Cipher  
copying lib/Crypto/Cipher/blockalgo.py → build/lib.linux-x86\_64-2.6/Crypto/Cipher  
copying lib/Crypto/Cipher/Blowfish.py → build/lib.linux-x86\_64-2.6/Crypto/Cipher  
copying lib/Crypto/Cipher/PKCS1\_v1\_5.py → build/lib.linux-x86\_64-2.6/Crypto/Cipher  
copying lib/Crypto/Cipher/ARC4.py → build/lib.linux-x86\_64-2.6/Crypto/Cipher  
copying lib/Crypto/Cipher/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/Cipher  
copying lib/Crypto/Cipher/AES.py → build/lib.linux-x86\_64-2.6/Crypto/Cipher  
creating build/lib.linux-x86\_64-2.6/Crypto/Util  
copying lib/Crypto/Util/number.py → build/lib.linux-x86\_64-2.6/Crypto/Util  
copying lib/Crypto/Util/py3compat.py → build/lib.linux-x86\_64-2.6/Crypto/Util  
copying lib/Crypto/Util/asn1.py → build/lib.linux-x86\_64-2.6/Crypto/Util  
copying lib/Crypto/Util/winrandom.py → build/lib.linux-x86\_64-2.6/Crypto/Util  
copying lib/Crypto/Util/RFC1751.py → build/lib.linux-x86\_64-2.6/Crypto/Util  
copying lib/Crypto/Util/randpool.py → build/lib.linux-x86\_64-2.6/Crypto/Util  
copying lib/Crypto/Util/\_number\_new.py → build/lib.linux-x86\_64-2.6/Crypto/Util  
copying lib/Crypto/Util/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/Util  
copying lib/Crypto/Util/py21compat.py → build/lib.linux-x86\_64-2.6/Crypto/Util  
copying lib/Crypto/Util/Counter.py → build/lib.linux-x86\_64-2.6/Crypto/Util  
creating build/lib.linux-x86\_64-2.6/Crypto/Random  
copying lib/Crypto/Random/random.py → build/lib.linux-x86\_64-2.6/Crypto/Random  
copying lib/Crypto/Random/\_UserFriendlyRNG.py → build/lib.linux-x86\_64-2.6/Crypto/Random  
copying lib/Crypto/Random/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/Random  
creating build/lib.linux-x86\_64-2.6/Crypto/Random/Fortuna  
copying lib/Crypto/Random/Fortuna/FortunaAccumulator.py → build/lib.linux-x86\_64-2.6/Crypto/Random/Fortuna  
copying lib/Crypto/Random/Fortuna/FortunaGenerator.py → build/lib.linux-x86\_64-2.6/Crypto/Random/Fortuna  
copying lib/Crypto/Random/Fortuna/SHAd256.py → build/lib.linux-x86\_64-2.6/Crypto/Random/Fortuna  
copying lib/Crypto/Random/Fortuna/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/Random/Fortuna  
creating build/lib.linux-x86\_64-2.6/Crypto/Random/OSRNG  
copying lib/Crypto/Random/OSRNG/posix.py → build/lib.linux-x86\_64-2.6/Crypto/Random/OSRNG  
copying lib/Crypto/Random/OSRNG/rng\_base.py → build/lib.linux-x86\_64-2.6/Crypto/Random/OSRNG  
copying lib/Crypto/Random/OSRNG/nt.py → build/lib.linux-x86\_64-2.6/Crypto/Random/OSRNG  
copying lib/Crypto/Random/OSRNG/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/Random/OSRNG  
copying lib/Crypto/Random/OSRNG/fallback.py → build/lib.linux-x86\_64-2.6/Crypto/Random/OSRNG  
creating build/lib.linux-x86\_64-2.6/Crypto/SelfTest  
copying lib/Crypto/SelfTest/st\_common.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest  
copying lib/Crypto/SelfTest/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest  
creating build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Cipher  
copying lib/Crypto/SelfTest/Cipher/test\_ARC2.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Cipher  
copying lib/Crypto/SelfTest/Cipher/test\_AES.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Cipher  
copying lib/Crypto/SelfTest/Cipher/test\_ARC4.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Cipher  
copying lib/Crypto/SelfTest/Cipher/test\_pkcs1\_15.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Cipher  
copying lib/Crypto/SelfTest/Cipher/test\_DES.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Cipher  
copying lib/Crypto/SelfTest/Cipher/test\_XOR.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Cipher  
copying lib/Crypto/SelfTest/Cipher/test\_Blowfish.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Cipher  
copying lib/Crypto/SelfTest/Cipher/test\_DES3.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Cipher  
copying lib/Crypto/SelfTest/Cipher/common.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Cipher  
copying lib/Crypto/SelfTest/Cipher/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Cipher  
copying lib/Crypto/SelfTest/Cipher/test\_pkcs1\_oaep.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Cipher  
copying lib/Crypto/SelfTest/Cipher/test\_CAST.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Cipher  
creating build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Hash  
copying lib/Crypto/SelfTest/Hash/test\_MD4.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Hash  
copying lib/Crypto/SelfTest/Hash/test\_SHA224.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Hash  
copying lib/Crypto/SelfTest/Hash/test\_MD5.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Hash  
copying lib/Crypto/SelfTest/Hash/test\_SHA384.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Hash  
copying lib/Crypto/SelfTest/Hash/test\_SHA256.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Hash  
copying lib/Crypto/SelfTest/Hash/test\_MD2.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Hash  
copying lib/Crypto/SelfTest/Hash/test\_HMAC.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Hash  
copying lib/Crypto/SelfTest/Hash/test\_SHA512.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Hash  
copying lib/Crypto/SelfTest/Hash/test\_SHA.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Hash  
copying lib/Crypto/SelfTest/Hash/test\_RIPEMD.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Hash  
copying lib/Crypto/SelfTest/Hash/common.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Hash  
copying lib/Crypto/SelfTest/Hash/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Hash  
creating build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Protocol  
copying lib/Crypto/SelfTest/Protocol/test\_AllOrNothing.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Protocol  
copying lib/Crypto/SelfTest/Protocol/test\_rfc1751.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Protocol  
copying lib/Crypto/SelfTest/Protocol/test\_KDF.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Protocol  
copying lib/Crypto/SelfTest/Protocol/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Protocol  
copying lib/Crypto/SelfTest/Protocol/test\_chaffing.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Protocol  
creating build/lib.linux-x86\_64-2.6/Crypto/SelfTest/PublicKey  
copying lib/Crypto/SelfTest/PublicKey/test\_ElGamal.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/PublicKey  
copying lib/Crypto/SelfTest/PublicKey/test\_importKey.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/PublicKey  
copying lib/Crypto/SelfTest/PublicKey/test\_RSA.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/PublicKey  
copying lib/Crypto/SelfTest/PublicKey/test\_DSA.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/PublicKey  
copying lib/Crypto/SelfTest/PublicKey/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/PublicKey  
creating build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random  
copying lib/Crypto/SelfTest/Random/test\_rpoolcompat.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random  
copying lib/Crypto/SelfTest/Random/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random  
copying lib/Crypto/SelfTest/Random/test\_random.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random  
copying lib/Crypto/SelfTest/Random/test\_\_UserFriendlyRNG.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random  
creating build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random/Fortuna  
copying lib/Crypto/SelfTest/Random/Fortuna/test\_FortunaAccumulator.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random/Fortuna  
copying lib/Crypto/SelfTest/Random/Fortuna/test\_FortunaGenerator.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random/Fortuna  
copying lib/Crypto/SelfTest/Random/Fortuna/test\_SHAd256.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random/Fortuna  
copying lib/Crypto/SelfTest/Random/Fortuna/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random/Fortuna  
creating build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random/OSRNG  
copying lib/Crypto/SelfTest/Random/OSRNG/test\_posix.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random/OSRNG  
copying lib/Crypto/SelfTest/Random/OSRNG/test\_fallback.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random/OSRNG  
copying lib/Crypto/SelfTest/Random/OSRNG/test\_generic.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random/OSRNG  
copying lib/Crypto/SelfTest/Random/OSRNG/test\_nt.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random/OSRNG  
copying lib/Crypto/SelfTest/Random/OSRNG/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random/OSRNG  
copying lib/Crypto/SelfTest/Random/OSRNG/test\_winrandom.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Random/OSRNG  
creating build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Util  
copying lib/Crypto/SelfTest/Util/test\_Counter.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Util  
copying lib/Crypto/SelfTest/Util/test\_number.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Util  
copying lib/Crypto/SelfTest/Util/test\_asn1.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Util  
copying lib/Crypto/SelfTest/Util/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Util  
copying lib/Crypto/SelfTest/Util/test\_winrandom.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Util  
creating build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Signature  
copying lib/Crypto/SelfTest/Signature/test\_pkcs1\_15.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Signature  
copying lib/Crypto/SelfTest/Signature/test\_pkcs1\_pss.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Signature  
copying lib/Crypto/SelfTest/Signature/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/SelfTest/Signature  
creating build/lib.linux-x86\_64-2.6/Crypto/Protocol  
copying lib/Crypto/Protocol/Chaffing.py → build/lib.linux-x86\_64-2.6/Crypto/Protocol  
copying lib/Crypto/Protocol/AllOrNothing.py → build/lib.linux-x86\_64-2.6/Crypto/Protocol  
copying lib/Crypto/Protocol/KDF.py → build/lib.linux-x86\_64-2.6/Crypto/Protocol  
copying lib/Crypto/Protocol/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/Protocol  
creating build/lib.linux-x86\_64-2.6/Crypto/PublicKey  
copying lib/Crypto/PublicKey/DSA.py → build/lib.linux-x86\_64-2.6/Crypto/PublicKey  
copying lib/Crypto/PublicKey/\_RSA.py → build/lib.linux-x86\_64-2.6/Crypto/PublicKey  
copying lib/Crypto/PublicKey/pubkey.py → build/lib.linux-x86\_64-2.6/Crypto/PublicKey  
copying lib/Crypto/PublicKey/RSA.py → build/lib.linux-x86\_64-2.6/Crypto/PublicKey  
copying lib/Crypto/PublicKey/\_DSA.py → build/lib.linux-x86\_64-2.6/Crypto/PublicKey  
copying lib/Crypto/PublicKey/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/PublicKey  
copying lib/Crypto/PublicKey/ElGamal.py → build/lib.linux-x86\_64-2.6/Crypto/PublicKey  
copying lib/Crypto/PublicKey/\_slowmath.py → build/lib.linux-x86\_64-2.6/Crypto/PublicKey  
creating build/lib.linux-x86\_64-2.6/Crypto/Signature  
copying lib/Crypto/Signature/PKCS1\_PSS.py → build/lib.linux-x86\_64-2.6/Crypto/Signature  
copying lib/Crypto/Signature/PKCS1\_v1\_5.py → build/lib.linux-x86\_64-2.6/Crypto/Signature  
copying lib/Crypto/Signature/ **init**.py → build/lib.linux-x86\_64-2.6/Crypto/Signature  
running build\_ext  
running build\_configure  
checking for gcc… gcc  
checking whether the C compiler works… yes  
checking for C compiler default output file name… a.out  
checking for suffix of executables…  
checking whether we are cross compiling… no  
checking for suffix of object files… o  
checking whether we are using the GNU C compiler… yes  
checking whether gcc accepts -g… yes  
checking for gcc option to accept ISO C89… none needed  
checking for \_\_gmpz\_init in -lgmp… no  
checking for \_\_gmpz\_init in -lmpir… no  
checking whether mpz\_powm is declared… no  
checking whether mpz\_powm\_sec is declared… no  
checking how to run the C preprocessor… gcc -E  
checking for grep that handles long lines and -e… /bin/grep  
checking for egrep… /bin/grep -E  
checking for ANSI C header files… yes  
checking for sys/types.h… yes  
checking for sys/stat.h… yes  
checking for stdlib.h… yes  
checking for string.h… yes  
checking for memory.h… yes  
checking for strings.h… yes  
checking for inttypes.h… yes  
checking for stdint.h… yes  
checking for unistd.h… yes  
checking for inttypes.h… (cached) yes  
checking limits.h usability… yes  
checking limits.h presence… yes  
checking for limits.h… yes  
checking stddef.h usability… yes  
checking stddef.h presence… yes  
checking for stddef.h… yes  
checking for stdint.h… (cached) yes  
checking for stdlib.h… (cached) yes  
checking for string.h… (cached) yes  
checking wchar.h usability… yes  
checking wchar.h presence… yes  
checking for wchar.h… yes  
checking for inline… inline  
checking for int16\_t… yes  
checking for int32\_t… yes  
checking for int64\_t… yes  
checking for int8\_t… yes  
checking for size\_t… yes  
checking for uint16\_t… yes  
checking for uint32\_t… yes  
checking for uint64\_t… yes  
checking for uint8\_t… yes  
checking for stdlib.h… (cached) yes  
checking for GNU libc compatible malloc… yes  
checking for memmove… yes  
checking for memset… yes  
configure: creating ./config.status  
config.status: creating src/config.h  
warning: GMP or MPIR library not found; Not building Crypto.PublicKey.\_fastmath.  
building ‘Crypto.Hash.\_MD2’ extension  
creating build/temp.linux-x86\_64-2.6  
creating build/temp.linux-x86\_64-2.6/src  
gcc -pthread -fno-strict-aliasing -pipe -Wall -Wp,-D\_FORTIFY\_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D\_GNU\_SOURCE -fPIC -fwrapv -pipe -Wall -Wp,-D\_FORTIFY\_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D\_GNU\_SOURCE -fPIC -fwrapv -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.6 -c src/MD2.c -o build/temp.linux-x86\_64-2.6/src/MD2.o  
src/MD2.c:31:20: error: Python.h: No such file or directory  
src/MD2.c:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘ **attribute** ’ before ‘_’ token  
In file included from src/MD2.c:147:  
src/hash\_template.c:48: error: expected specifier-qualifier-list before ‘PyObject\_HEAD’  
src/hash\_template.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘ **attribute** ’ before ‘PyTypeObject’  
src/hash\_template.c: In function ‘newALGobject’:  
src/hash\_template.c:69: warning: implicit declaration of function ‘PyObject\_New’  
src/hash\_template.c:69: error: expected expression before ‘ALGobject’  
src/hash\_template.c: At top level:  
src/hash\_template.c:76: error: expected ‘)’ before ‘_’ token  
src/hash\_template.c:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘ **attribute** ’ before ‘_’ token  
src/hash\_template.c:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘ **attribute** ’ before ‘_’ token  
src/hash\_template.c:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘ **attribute** ’ before ‘_’ token  
src/hash\_template.c:162: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘ **attribute** ’ before ‘_’ token  
src/hash\_template.c:188: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘ **attribute** ’ before ‘_’ token  
src/hash\_template.c:190: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘ **attribute** ’ before ‘ALG\_methods’  
src/hash\_template.c:199: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘ **attribute** ’ before ‘_’ token  
src/hash\_template.c:225: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘ **attribute** ’ before ‘ALGtype’  
src/hash\_template.c:271: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘ **attribute** ’ before ‘\*’ token  
src/hash\_template.c:304: error: array type has incomplete element type  
src/hash\_template.c:305: error: ‘PyCFunction’ undeclared here (not in a function)  
src/hash\_template.c:305: error: expected ‘}’ before ‘ALG\_new’  
src/hash\_template.c: In function ‘init\_MD2’:  
src/hash\_template.c:339: error: ‘PyObject’ undeclared (first use in this function)  
src/hash\_template.c:339: error: (Each undeclared identifier is reported only once  
src/hash\_template.c:339: error: for each function it appears in.)  
src/hash\_template.c:339: error: ‘m’ undeclared (first use in this function)  
src/hash\_template.c:351: error: ‘ALGtype’ undeclared (first use in this function)  
src/hash\_template.c:351: error: ‘PyType\_Type’ undeclared (first use in this function)  
src/hash\_template.c:352: warning: implicit declaration of function ‘Py\_InitModule’  
src/hash\_template.c:356: error: ‘o’ undeclared (first use in this function)  
src/hash\_template.c:356: warning: implicit declaration of function ‘PyInt\_FromLong’  
src/hash\_template.c:356: warning: implicit declaration of function ‘PyDict\_SetItemString’  
src/hash\_template.c:356: warning: implicit declaration of function ‘PyModule\_GetDict’  
src/hash\_template.c:356: warning: implicit declaration of function ‘Py\_DECREF’  
src/hash\_template.c:360: warning: implicit declaration of function ‘PyErr\_Occurred’  
src/hash\_template.c:361: warning: implicit declaration of function ‘Py\_FatalError’  
error: command ‘gcc’ failed with exit status 1

---

<div class="post-metadata">

**Author:** ![Dick\_Davies](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Post date:** [November 22, 2015, 11:31am UTC](https://forum.ansible.com/t/pip-install-paramiko-install-fails/19812/2 "2015-11-22T11:31:27Z")

</div>

src/MD2.c:31:20: error: Python.h: No such file or directory

you need a python-dev package or similar.
