问题描述
(我是新来的,所以请温柔)
在 macOS big sur 上的自制软件中使用 topgrade 时(我在使用 brew install topgrade
安装自制软件后安装了 topgrade)时,我遇到了以下问题:
xcrun: error: invalid active developer path (/Library/Developer/CommandLinetools),missing xcrun at: /Library/Developer/CommandLinetools/usr/bin/xcrun
我在网上寻找解决方案:https://andreaolivato.medium.com/how-to-solve-the-invalid-active-developer-path-brew-error-after-updating-to-mac-os-catalina-10-15-e351e743dd23
按照我运行的建议:xcode-select --install
然后重新启动。
再次运行 topgrade 后,当它说:
...
Successfully installed pip-21.1.1
WARNING: You are using pip version 19.2.3,however version 21.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
...
但我虽然很好,但似乎它自己更新了。所以我再次运行 topgrade,它说
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Requirement already satisfied: pip in ./Library/Python/3.8/lib/python/site-packages (21.1.1)
从那时起我就得到了相同的答案。我点击了链接,但除了 python 解决方法之外没有找到任何解决方案,这似乎是一个短期解决方案。就我现在的 pip 版本 19.2.3 和 21.1.1 而言,需要删除旧版本对吗?但是我该怎么做呢?
Requirement already satisfied: pip in ./Library/Python/3.8/lib/python/site-packages (21.1.1)
是否意味着它已经自行修复?如果我忽略这个问题会发生什么?如果有人可以帮助我,那将不胜感激。虽然我喜欢技术,但我根本没有编码经验,这让我无法理解。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)