No .egg-info directory found in xxx\pip-pip-egg-info-mq
WARNING: Ignoring invalid distribution -ip (d:\software\python\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\software\python\lib\site-packages)
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting fake_useragent
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d1/79/af647635d6968e2deb57a208d309f6069d31cb138066d7e821e575112a80/fake-useragent-0.1.11.tar.gz (13 kB)
Preparing metadata (setup.py) ... done
ERROR: No .egg-info directory found in C:\Users\Administrator\AppData\Local\Temp\pip-pip-egg-info-bv9lg3s5
WARNING: Ignoring invalid distribution -ip (d:\software\python\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\software\python\lib\site-packages)
解决办法:
清空python安装目录下的Lib\site-packages目录中的依赖包(需要保留pip依赖包),然后再执行以下命令。
pip install -U fake-useragent