成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

安裝psutil模塊報錯怎么解決

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

這篇文章主要講解了“安裝psutil模塊報錯怎么解決”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“安裝psutil模塊報錯怎么解決”吧!
'*' 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)庫包:
[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è)計制作,有大型網(wǎng)站制作公司豐富經(jīng)驗(yàn)。已為靖西成百上千提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\成都外貿(mào)網(wǎng)站建設(shè)公司要多少錢,請找那個售后服務(wù)好的靖西做網(wǎng)站的公司定做!

Successfully installed psutil-5.0.1

新聞名稱:安裝psutil模塊報錯怎么解決
當(dāng)前URL:http://jinyejixie.com/article0/ioooio.html

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

廣告

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

成都定制網(wǎng)站建設(shè)
南康市| 乐安县| 驻马店市| 伊通| 叶城县| 安康市| 淮阳县| 北安市| 河津市| 临夏县| 遂宁市| 五河县| 高陵县| 全南县| 旺苍县| 山阴县| 津市市| 邯郸市| 武穴市| 德阳市| 兴安盟| 怀宁县| 柘城县| 平顶山市| 曲水县| 新宾| 清水河县| 澜沧| 新平| 治多县| 隆林| 雷山县| 金阳县| 东源县| 遂昌县| 乳源| 四会市| 凌海市| 石泉县| 修水县| 左云县|