使用python pip命令提示警告worning
C:\Users\cy>pip list
WARNING: Ignoring invalid distribution -yqt5 (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\python3.9\lib\site-packages)
Package Version
------------------------- ------------
Adafruit-GPIO 1.0.3
Adafruit-PureIO 1.0.1
Adafruit-SSD1306 1.6.2
altgraph 0.17
appdirs 1.4.4
asgiref 3.3.1
asn1crypto 1.4.0
astroid 2.5.1
asttokens 2.0.4
backcall 0.2.0
beautifulsoup4 4.9.3
bs4 0.0.1
certifi 2020.12.5
chardet 4.0.0
click 7.1.2
colorama 0.4.4
decorator 4.4.2
distlib 0.3.1
Django 3.1.7
docx 0.2.4
docx-mailmerge 0.5.0
EasyProcess 0.3
entrypoint2 0.2.3
et-xmlfile 1.0.1
filelock 3.0.12
future 0.18.2
idna 2.10
ipython-genutils 0.2.0
jedi 0.18.0
jupyter-core 4.7.1
lazy-object-proxy 1.5.2
lxml 4.6.3
MouseInfo 0.1.3
mss 6.1.0
numpy 1.20.1
opencv-python 4.5.1.48
openpyxl 3.0.7
orjson 3.5.1
packaging 20.9
pandas 1.2.3
parso 0.8.1
pefile 2019.4.18
pickleshare 0.7.5
Pillow 8.1.0
pip 21.1
pip-review 1.1.0
pipenv 2020.11.15
prompt-toolkit 3.0.17
psutil 5.8.0
PyAutoGUI 0.9.52
pycparser 2.20
pygame 2.0.1
PyGetWindow 0.0.9
Pygments 2.8.1
pyinstaller 4.2
pyinstaller-hooks-contrib 2021.1
PyMsgBox 1.0.9
pyparsing 2.4.7
pyperclip 1.8.2
pypiwin32 223
pyqt5-plugins 5.15.2.2.1.0
PyQt5-Qt5 5.15.2
PyQt5-sip 12.8.1
PyQt5-stubs 5.15.2.0
pyqt5-tools 5.15.2.3.0.2
PyRect 0.1.4
pyscreenshot 2.3
PyScreeze 0.1.26
pytesseract 0.3.7
python-dateutil 2.8.1
python-docx 0.8.10
python-dotenv 0.17.0
PyTweening 1.0.3
pytz 2021.1
pywin32 300
pywin32-ctypes 0.2.0
pyzmq 22.0.3
qt5-applications 5.15.2.2.1
qt5-tools 5.15.2.1.0.1
requests 2.25.1
semantic-version 2.8.5
setuptools 56.0.0
setuptools-rust 0.11.6
sip 6.0.3
six 1.15.0
soupsieve 2.2.1
sqlparse 0.4.1
toml 0.10.2
tornado 6.1
traitlets 5.0.5
typed-ast 1.4.2
typing-extensions 3.7.4.3
urllib3 1.26.4
virtualenv 20.4.3
virtualenv-clone 0.5.4
wcwidth 0.2.5
wheel 0.36.2
wrapt 1.12.1
xlrd 1.2.0
zipp 3.4.1
WARNING: Ignoring invalid distribution -yqt5 (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\python3.9\lib\site-packages)
C:\Users\cy>
在使用pip安装包时也出现相同的警告
C:\Users\cy>pip install pyqt5-tools
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: d:\python3.9\Include\UNKNOWN
sysconfig: d:\python3.9\Include
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
WARNING: Ignoring invalid distribution -yqt5 (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\python3.9\lib\site-packages)
Collecting pyqt5-tools
Downloading pyqt5_tools-5.15.2.3.0.2-py3-none-any.whl (28 kB)
Collecting python-dotenv
Downloading python_dotenv-0.17.0-py2.py3-none-any.whl (18 kB)
Collecting pyqt5==5.15.2
Downloading PyQt5-5.15.2-5.15.2-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl (56.9 MB)
|████████████████████████████████| 56.9 MB 148 kB/s
Requirement already satisfied: click in d:\python3.9\lib\site-packages (from pyqt5-tools) (7.1.2)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/pyqt5-plugins/
Collecting pyqt5-plugins<5.15.2.3,>=5.15.2.2
Downloading pyqt5_plugins-5.15.2.2.1.0-cp39-cp39-win_amd64.whl (65 kB)
|████████████████████████████████| 65 kB 154 kB/s
Requirement already satisfied: PyQt5-sip<13,>=12.8 in d:\python3.9\lib\site-packages (from pyqt5==5.15.2->pyqt5-tools) (12.8.1)
Requirement already satisfied: qt5-tools<5.15.2.2,>=5.15.2.1 in d:\python3.9\lib\site-packages (from pyqt5-plugins<5.15.2.3,>=5.15.2.2->pyqt5-tools) (5.15.2.1.0.1)
Requirement already satisfied: qt5-applications<5.15.2.3,>=5.15.2.2 in d:\python3.9\lib\site-packages (from qt5-tools<5.15.2.2,>=5.15.2.1->pyqt5-plugins<5.15.2.3,>=5.15.2.2->pyqt5-tools) (5.15.2.2.1)
WARNING: Ignoring invalid distribution -yqt5 (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\python3.9\lib\site-packages)
Installing collected packages: pyqt5, python-dotenv, pyqt5-plugins, pyqt5-tools
Attempting uninstall: pyqt5
WARNING: Ignoring invalid distribution -yqt5 (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\python3.9\lib\site-packages)
Found existing installation: PyQt5 5.15.4
Uninstalling PyQt5-5.15.4:
Successfully uninstalled PyQt5-5.15.4
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: d:\python3.9\Include\UNKNOWN
sysconfig: d:\python3.9\Include
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
WARNING: Ignoring invalid distribution -yqt5 (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\python3.9\lib\site-packages)
Successfully installed pyqt5-5.15.2 pyqt5-plugins-5.15.2.2.1.0 pyqt5-tools-5.15.2.3.0.2 python-dotenv-0.17.0
WARNING: Ignoring invalid distribution -yqt5 (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (d:\python3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\python3.9\lib\site-packages)
C:\Users\cy>pip uninstall pyqt5
我使用的是版本是python3.9 win10
始终无法解决消除pip命令的警告