Python installation Psutil

Source: Internet
Author: User

When using the Python component Psutil, you need to install it first, as follows:

    wget https://pypi.python.org/packages/source/p/psutil/psutil-2.0. 0.tar.gz    -xzvf psutil-2.0. 0. tar.gz    cd psutil-2.0. 0    python setup.py install

The installation process may have the following error:

Psutil/_psutil_linux.c:421:error:expected specifier-qualifier-list before?. Yobject?psutil/_psutil_linux.c:in function? Nit_psutil_linux?. Psutil/_psutil_linux.c:470:error:?. Yobject?. Undeclared (First useinchThis function) Psutil/_psutil_linux.c:470:error: (Each undeclared identifier isreported only Oncepsutil/_psutil_linux.c:470:error: forEach function it appearsinch.) Psutil/_psutil_linux.c:470:error:?. Odule?. Undeclared (First useinchThis function) Psutil/_psutil_linux.c:470: warning:implicit declaration of function?. Y_initmodule?psutil/_psutil_linux.c:470:error:?. Sutilmethods?. Undeclared (First useinchThis function) Error:command'GCC'Failed with exit status 1

Error original because no installation python-devel caused, direct yum installation can.

Python installation Psutil

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.