如何解决No metadata found in /usr/local/lib/python3.10/site-packages问题

切换python 3.10的时候,发现pip升级会报

No metadata found in /usr/local/lib/python3.10/site-packages

这个错误!

brew link python@3.10
Linking /usr/local/Cellar/python@3.10/3.10.2…
Error: Could not symlink bin/pip3
Target /usr/local/bin/pip3
already exists. You may want to remove it:
rm ‘/usr/local/bin/pip3’

To force the link and overwrite all conflicting files:
brew link –overwrite python@3.10

To list all files that would be deleted:
brew link –overwrite –dry-run python@3.10

解决办法就是先rm ‘/usr/local/bin/pip3’,再重新运行 brew link python@3.10

发表评论

项目已添加到购物车。
0 项 - ¥0.00