解决pip安装依赖包时出现的问题"ERROR: Failed building wheel for xxx"

出现一片红,中间夹杂着一片黄,提示如下:

DEPRECATION: Could not build wheels for fairseq which do not use PEP
517. pip will fall back to legacy ‘setup.py install’ for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can
find discussion regarding this at
https://github.com/pypa/pip/issues/8368.

差不多就是这样子的错误:
错误长这样

被黄字误导所以以为是pip的问题,把pip降级之后并没有解决.
最后解决方式:

#我是3.6的版本咯,那你自己的是什么你就写什么哟~
apt-get install python3.6-dev

好啦~~问题解决!

问了隔壁的师兄知不知道python-dev这个东西,他表示不知道,那我就放心了这并不是一个白痴问题,嘻嘻.
所以附上一个比较敷衍的介绍(再敷衍也比我强):https://www.jianshu.com/p/c815881f752d

你可能感兴趣的:(pip,python,bug)