Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/q2/n_1xnt8x3b...

執(zhí)行:pip3.6 install pylint

Collecting pylint
  Downloading https://files.pythonhosted.org/packages/fb/13/519c1264a134beab2be4bac8dd3e64948980a5ca7833b31cf0255b21f20a/pylint-2.6.0-py3-none-any.whl (325kB)
    100% |████████████████████████████████| 327kB 1.0MB/s 
Collecting mccabe<0.7,>=0.6 (from pylint)
  Using cached https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Requirement already satisfied: toml>=0.7.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from pylint)
Collecting isort<6,>=4.2.5 (from pylint)
  Downloading https://files.pythonhosted.org/packages/b5/9b/f9e9307c89a80552f298cef17a62fa856b3f5220436338886d5eab64d4fa/isort-5.4.2-py3-none-any.whl (94kB)
    100% |████████████████████████████████| 102kB 1.4MB/s 
Collecting astroid<=2.5,>=2.4.0 (from pylint)
  Using cached https://files.pythonhosted.org/packages/24/a8/5133f51967fb21e46ee50831c3f5dda49e976b7f915408d670b1603d41d6/astroid-2.4.2-py3-none-any.whl
Requirement already satisfied: six~=1.12 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from astroid<=2.5,>=2.4.0->pylint)
Collecting wrapt~=1.11 (from astroid<=2.5,>=2.4.0->pylint)
  Downloading https://files.pythonhosted.org/packages/82/f7/e43cefbe88c5fd371f4cf0cf5eb3feccd07515af9fd6cf7dbf1d1793a797/wrapt-1.12.1.tar.gz
Collecting lazy-object-proxy==1.4.* (from astroid<=2.5,>=2.4.0->pylint)
  Using cached https://files.pythonhosted.org/packages/07/3f/a3d687f83c7d44970f70ff0400677746c8860b11f0c08f6b4e07205f0cdc/lazy-object-proxy-1.4.3.tar.gz
    Complete output from command python setup.py egg_info:
    WARNING: The wheel package is not available.
    ERROR: 'pip wheel' requires the 'wheel' package. To fix this, run: pip install wheel
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/installer.py", line 128, in fetch_build_egg
        subprocess.check_call(cmd)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 291, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/folders/q2/n_1xnt8x3b917ks7m4tlf1qm0000gn/T/tmpkb8xzf4v', '--quiet', 'setuptools_scm>=3.3.1']' returned non-zero exit status 1.
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/q2/n_1xnt8x3b917ks7m4tlf1qm0000gn/T/pip-build-ckq9kpr8/lazy-object-proxy/setup.py", line 130, in <module>
        for root, _, _ in os.walk('src')
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 162, in setup
        _install_setup_requires(attrs)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 157, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/dist.py", line 702, in fetch_build_eggs
        replace_conflicting=True,
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 781, in resolve
        replace_conflicting=replace_conflicting
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1064, in best_match
        return self.obtain(req, installer)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1076, in obtain
        return installer(requirement)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/dist.py", line 758, in fetch_build_egg
        return fetch_build_egg(self, req)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/installer.py", line 130, in fetch_build_egg
        raise DistutilsError(str(e)) from e
    distutils.errors.DistutilsError: Command '['/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/folders/q2/n_1xnt8x3b917ks7m4tlf1qm0000gn/T/tmpkb8xzf4v', '--quiet', 'setuptools_scm>=3.3.1']' returned non-zero exit status 1.
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/q2/n_1xnt8x3b917ks7m4tlf1qm0000gn/T/pip-build-ckq9kpr8/lazy-object-proxy/
You are using pip version 9.0.3, however version 20.2.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

嘗試了很多辦法,比如網(wǎng)上說的:pip install -U setuptools 也沒有用
后來嘗試著自己看了報(bào)錯憾筏,發(fā)現(xiàn)有一行報(bào)錯是:
ERROR: 'pip wheel' requires the 'wheel' package. To fix this, run: pip install wheel
就想著可能是wheel的問題嚎杨,于是執(zhí)行了pip install wheel
下載成功之后再執(zhí)行一次pip install pylint
成功了,以下是執(zhí)行過程:

$ pip3 install wheel
Collecting wheel
  Downloading https://files.pythonhosted.org/packages/a7/00/3df031b3ecd5444d572141321537080b40c1c25e1caa3d86cdd12e5e919c/wheel-0.35.1-py2.py3-none-any.whl
Installing collected packages: wheel
Successfully installed wheel-0.35.1
You are using pip version 9.0.3, however version 20.2.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

# huangxiaogua @ hxgMacBook-Pro in /Library/Frameworks/Python.framework/Versions/3.6/bin [23:04:24]
$ pip3 install pylint
Collecting pylint
  Using cached https://files.pythonhosted.org/packages/fb/13/519c1264a134beab2be4bac8dd3e64948980a5ca7833b31cf0255b21f20a/pylint-2.6.0-py3-none-any.whl
Collecting isort<6,>=4.2.5 (from pylint)
  Using cached https://files.pythonhosted.org/packages/b5/9b/f9e9307c89a80552f298cef17a62fa856b3f5220436338886d5eab64d4fa/isort-5.4.2-py3-none-any.whl
Collecting astroid<=2.5,>=2.4.0 (from pylint)
  Using cached https://files.pythonhosted.org/packages/24/a8/5133f51967fb21e46ee50831c3f5dda49e976b7f915408d670b1603d41d6/astroid-2.4.2-py3-none-any.whl
Requirement already satisfied: toml>=0.7.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from pylint)
Collecting mccabe<0.7,>=0.6 (from pylint)
  Using cached https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Collecting typed-ast<1.5,>=1.4.0; implementation_name == "cpython" and python_version < "3.8" (from astroid<=2.5,>=2.4.0->pylint)
  Using cached https://files.pythonhosted.org/packages/9d/f9/02030a2bbcbb164708d14cd83c8f022c9ef97d6c8dd6c1081b46d1975d74/typed_ast-1.4.1-cp36-cp36m-macosx_10_9_x86_64.whl
Requirement already satisfied: six~=1.12 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from astroid<=2.5,>=2.4.0->pylint)
Collecting lazy-object-proxy==1.4.* (from astroid<=2.5,>=2.4.0->pylint)
  Using cached https://files.pythonhosted.org/packages/07/3f/a3d687f83c7d44970f70ff0400677746c8860b11f0c08f6b4e07205f0cdc/lazy-object-proxy-1.4.3.tar.gz
Collecting wrapt~=1.11 (from astroid<=2.5,>=2.4.0->pylint)
  Using cached https://files.pythonhosted.org/packages/82/f7/e43cefbe88c5fd371f4cf0cf5eb3feccd07515af9fd6cf7dbf1d1793a797/wrapt-1.12.1.tar.gz
Building wheels for collected packages: lazy-object-proxy, wrapt
  Running setup.py bdist_wheel for lazy-object-proxy ... done
  Stored in directory: /Users/huangxiaolin/Library/Caches/pip/wheels/37/cf/33/dee85e699e6fde7299b3e234d7e4a45720120b083177a7d078
  Running setup.py bdist_wheel for wrapt ... done
  Stored in directory: /Users/huangxiaolin/Library/Caches/pip/wheels/b1/c2/ed/d62208260edbd3fa7156545c00ef966f45f2063d0a84f8208a
Successfully built lazy-object-proxy wrapt
Installing collected packages: isort, typed-ast, lazy-object-proxy, wrapt, astroid, mccabe, pylint
Successfully installed astroid-2.4.2 isort-5.4.2 lazy-object-proxy-1.4.3 mccabe-0.6.1 pylint-2.6.0 typed-ast-1.4.1 wrapt-1.12.1
You are using pip version 9.0.3, however version 20.2.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末氧腰,一起剝皮案震驚了整個濱河市枫浙,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌古拴,老刑警劉巖箩帚,帶你破解...
    沈念sama閱讀 221,635評論 6 515
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異斤富,居然都是意外死亡膏潮,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,543評論 3 399
  • 文/潘曉璐 我一進(jìn)店門满力,熙熙樓的掌柜王于貴愁眉苦臉地迎上來焕参,“玉大人,你說我怎么就攤上這事油额〉祝” “怎么了?”我有些...
    開封第一講書人閱讀 168,083評論 0 360
  • 文/不壞的土叔 我叫張陵潦嘶,是天一觀的道長涩嚣。 經(jīng)常有香客問我,道長,這世上最難降的妖魔是什么航厚? 我笑而不...
    開封第一講書人閱讀 59,640評論 1 296
  • 正文 為了忘掉前任顷歌,我火速辦了婚禮,結(jié)果婚禮上幔睬,老公的妹妹穿的比我還像新娘眯漩。我一直安慰自己,他們只是感情好麻顶,可當(dāng)我...
    茶點(diǎn)故事閱讀 68,640評論 6 397
  • 文/花漫 我一把揭開白布赦抖。 她就那樣靜靜地躺著,像睡著了一般辅肾。 火紅的嫁衣襯著肌膚如雪队萤。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 52,262評論 1 308
  • 那天矫钓,我揣著相機(jī)與錄音要尔,去河邊找鬼。 笑死份汗,一個胖子當(dāng)著我的面吹牛盈电,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播杯活,決...
    沈念sama閱讀 40,833評論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼匆帚,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了旁钧?” 一聲冷哼從身側(cè)響起吸重,我...
    開封第一講書人閱讀 39,736評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎歪今,沒想到半個月后嚎幸,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 46,280評論 1 319
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡寄猩,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 38,369評論 3 340
  • 正文 我和宋清朗相戀三年嫉晶,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片田篇。...
    茶點(diǎn)故事閱讀 40,503評論 1 352
  • 序言:一個原本活蹦亂跳的男人離奇死亡替废,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出泊柬,到底是詐尸還是另有隱情椎镣,我是刑警寧澤,帶...
    沈念sama閱讀 36,185評論 5 350
  • 正文 年R本政府宣布兽赁,位于F島的核電站状答,受9級特大地震影響冷守,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜惊科,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,870評論 3 333
  • 文/蒙蒙 一拍摇、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧馆截,春花似錦授翻、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,340評論 0 24
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽巡语。三九已至翎蹈,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間男公,已是汗流浹背荤堪。 一陣腳步聲響...
    開封第一講書人閱讀 33,460評論 1 272
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留枢赔,地道東北人澄阳。 一個月前我還...
    沈念sama閱讀 48,909評論 3 376
  • 正文 我出身青樓,卻偏偏與公主長得像踏拜,于是被迫代替她去往敵國和親碎赢。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,512評論 2 359