Linux Python 安装第三方库时报错 package wheel is not installed

如图,安装第三方库报错

Could not build wheels for pyspider, since package 'wheel' is not installed.
Could not build wheels for Flask, since package 'wheel' is not installed.
Could not build wheels for Jinja2, since package 'wheel' is not installed.
Could not build wheels for chardet, since package 'wheel' is not installed.
Could not build wheels for cssselect, since package 'wheel' is not installed.
Could not build wheels for lxml, since package 'wheel' is not installed.
Could not build wheels for pycurl, since package 'wheel' is not installed.
Could not build wheels for requests, since package 'wheel' is not installed.
Could not build wheels for Flask-Login, since package 'wheel' is not installed.
Could not build wheels for u-msgpack-python, since package 'wheel' is not installed.
Could not build wheels for click, since package 'wheel' is not installed.
Could not build wheels for six, since package 'wheel' is not installed.
Could not build wheels for tblib, since package 'wheel' is not installed.
Could not build wheels for wsgidav, since package 'wheel' is not installed.
Could not build wheels for tornado, since package 'wheel' is not installed.
Could not build wheels for pyquery, since package 'wheel' is not installed.
Could not build wheels for Werkzeug, since package 'wheel' is not installed.
Could not build wheels for itsdangerous, since package 'wheel' is not installed.
Could not build wheels for MarkupSafe, since package 'wheel' is not installed.
Could not build wheels for certifi, since package 'wheel' is not installed.
Could not build wheels for idna, since package 'wheel' is not installed.
Could not build wheels for urllib3, since package 'wheel' is not installed.
Could not build wheels for defusedxml, since package 'wheel' is not installed.
Could not build wheels for json5, since package 'wheel' is not installed.
Could not build wheels for PyYAML, since package 'wheel' is not installed.

搜了一大堆,大家都说是PIP和TOOL问题,按照他们的方法升级没用,本地查看确实也安装了Wheel
在这里插入图片描述

搜来搜索,在一个回复里找到了原因,还是PIP 的问题,需要强制安装,有点莫名其妙,好在是解决了

pip install -U --force-reinstall pip

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/sevensolo/article/details/106169464
今日推荐