中文字幕日韩精品一区二区免费_精品一区二区三区国产精品无卡在_国精品无码专区一区二区三区_国产αv三级中文在线

安裝psutil模塊報(bào)錯(cuò)怎么解決

這篇文章主要講解了“安裝psutil模塊報(bào)錯(cuò)怎么解決”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來(lái)研究和學(xué)習(xí)“安裝psutil模塊報(bào)錯(cuò)怎么解決”吧!

這篇文章主要講解了“安裝psutil模塊報(bào)錯(cuò)怎么解決”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來(lái)研究和學(xué)習(xí)“安裝psutil模塊報(bào)錯(cuò)怎么解決”吧!
'*' token
    psutil/_psutil_linux.c:190: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    psutil/_psutil_linux.c:240: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    psutil/_psutil_linux.c:268: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    psutil/_psutil_linux.c:375: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    psutil/_psutil_linux.c:433: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    psutil/_psutil_linux.c:482: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    psutil/_psutil_linux.c:543: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PsutilMethods'
    psutil/_psutil_linux.c:582: error: expected specifier-qualifier-list before 'PyObject'
    psutil/_psutil_linux.c: In function 'init_psutil_linux':
    psutil/_psutil_linux.c:628: error: 'PyObject' undeclared (first use in this function)
    psutil/_psutil_linux.c:628: error: (Each undeclared identifier is reported only once
    psutil/_psutil_linux.c:628: error: for each function it appears in.)
    psutil/_psutil_linux.c:628: error: 'v' undeclared (first use in this function)
    psutil/_psutil_linux.c:632: error: 'module' undeclared (first use in this function)
    psutil/_psutil_linux.c:632: warning: implicit declaration of function 'Py_InitModule'
    psutil/_psutil_linux.c:632: error: 'PsutilMethods' undeclared (first use in this function)
    psutil/_psutil_linux.c:635: warning: implicit declaration of function 'PyModule_AddIntConstant'
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-cY1TLx/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-J4cL69-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-cY1TLx/psutil/

===============================================================

解決方法是安裝python-devel,這是Python的頭文件和靜態(tài)庫(kù)包:
[root@localhost ~]# yum install python-devel.x86_64
Failed to set locale, defaulting to C
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-devel.x86_64 0:2.6.6-51.el6 will be installed

--> Finished Dependency Resolution

Dependencies Resolved
===============================================================================================
 Package                Arch             Version                  Repository              Size
===============================================================================================
Installing:

 python-devel           x86_64           2.6.6-51.el6             cdrom-server           171 k
Transaction Summary
===============================================================================================

Install       1 Package(s)
Total download size: 171 k
Installed size: 456 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : python-devel-2.6.6-51.el6.x86_64                                            1/1

  Verifying  : python-devel-2.6.6-51.el6.x86_64                                            1/1
Installed:

  python-devel.x86_64 0:2.6.6-51.el6                                                           
Complete!
在用pip安裝psutil模塊
[root@localhost ~]# pip install psutil
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Collecting psutil
  Using cached psutil-5.0.1.tar.gz
Installing collected packages: psutil
  Running setup.py install for psutil ... done

靖西網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián)建站,靖西網(wǎng)站設(shè)計(jì)制作,有大型網(wǎng)站制作公司豐富經(jīng)驗(yàn)。已為靖西成百上千提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\成都外貿(mào)網(wǎng)站建設(shè)公司要多少錢,請(qǐng)找那個(gè)售后服務(wù)好的靖西做網(wǎng)站的公司定做!

Successfully installed psutil-5.0.1

新聞名稱:安裝psutil模塊報(bào)錯(cuò)怎么解決
當(dāng)前URL:http://www.rwnh.cn/article0/ioooio.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供營(yíng)銷型網(wǎng)站建設(shè)App設(shè)計(jì)、移動(dòng)網(wǎng)站建設(shè)用戶體驗(yàn)、ChatGPT面包屑導(dǎo)航

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都定制網(wǎng)站建設(shè)
铁力市| 文成县| 饶平县| 迁安市| 汶川县| 淄博市| 汝城县| 湘乡市| 呈贡县| 海晏县| 泉州市| 海盐县| 枝江市| 蒲城县| 霍州市| 宁陕县| 大方县| 红河县| 成都市| 土默特左旗| 桃园市| 张掖市| 阿荣旗| 宿松县| 万盛区| 刚察县| 谢通门县| 新蔡县| 南开区| 明水县| 南宫市| 十堰市| 吴川市| 泰宁县| 岚皋县| 定日县| 综艺| 浙江省| 会昌县| 东宁县| 贺州市|