亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

pip install 中“Failed building wheel for X”是什么意思?

pip install 中“Failed building wheel for X”是什么意思?

楊__羊羊 2021-08-11 17:11:52
這是 SO 上一個真正受歡迎的問題,但我看過的許多答案中沒有一個能清楚地解釋這個錯誤的真正含義以及它發生的原因。一個混亂的來源是,當(例如)你這樣做時pip install pycparser,你首先得到錯誤:Failed building wheel for pycparser然后是消息包是:Successfully installed pycparser-2.19.# pip3 install pycparserCollecting pycparser  Using cached https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gzBuilding wheels for collected packages: pycparser  Running setup.py bdist_wheel for pycparser ... error  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-g_v28hpp/pycparser/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-__w_f6p0 --python-tag cp36:  Traceback (most recent call last):    File "<string>", line 1, in <module>    ...    File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2349, in resolve      module = __import__(self.module_name, fromlist=['__name__'], level=0)  ModuleNotFoundError: No module named 'wheel.bdist_wheel'  ----------------------------------------  Failed building wheel for pycparser  Running setup.py clean for pycparserFailed to build pycparserInstalling collected packages: pycparser  Running setup.py install for pycparser ... doneSuccessfully installed pycparser-2.19這里發生了什么?(我想了解某些東西是如何失敗但仍然可以安裝的,以及您是否可以相信這個包可以正常運行?)到目前為止,我發現的最好的部分解釋是這個。
查看完整描述

3 回答

?
慕森卡

TA貢獻1806條經驗 獲得超8個贊

因為,除了我自己,似乎沒有人提到這一點。我自己解決上述問題是最常見的,以確保禁用緩存使用副本:pip install <package> --no-cache-dir


查看完整回答
反對 回復 2021-08-11
  • 3 回答
  • 0 關注
  • 614 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號