Linux installs Pycrypto error when installing Paramiko with Python

Source: Internet
Author: User

Install Pycrypto error on the python2.7 version, as follows

  [[email protected]/var/tmp/paramiko/pycrypto-2.6]# python setup.py build && python setup.py Installrunning buildrunning build_pyrunning build_extrunning build_configurewarning:gmp or MPIR library not found; Not building crypto.publickey._fastmath.building ' crypto.hash._md2 ' extensiongcc-pthread-fno-strict-aliasing-pipe- Wall-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-pipe-wall-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-std=c99-o3-fomit-frame-pointer-isrc/-i/usr/include/python2.7-c Src/md2.c-o build/temp.linux-x86_ 64-2.7/src/md2.osrc/md2.c:31:20:fatal error:python.h:no such file or directory #include "Python.h" ^ Compilation Terminated.error:command ' GCC ' failed with exit status 1  

Find information on the Internet, found that the lack of python-dev, the package led to open Yum source code,
Then execute the command:
Installation #yum Install Python-devel
Then follow the steps below to install it:
Installation and use of Linux installation Paramiko modules

Linux installs Pycrypto error when installing Paramiko with Python

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.