我使用了Python 3.8.6,通过自制程序安装在我的Mac(Mac OS 11.1)上,一切都很好。在用自制软件将Python升级到3.9(以及更高版本的3.9.1)之后,有一个issue with one of the moduls可能是由它引起的,我想返回
Python版本的问题似乎很常见,关于这一点的文章很多,但到目前为止,没有任何东西对我有效pyenv经常被推荐,但实际上我现在不需要3.9版本,也不想引入另一层复杂性
我为类似的情况找到了一个tempting thread,但遵循这些建议不知何故混淆了我的pipenv
,它不知何故仍然坚持Python 3.9。(更新:同时我可以solve that problem)
无论如何,我的想法是简单地运行brew uninstall python
,然后brew install python@3.8
(或者不管如何,解决3.8版本的问题)
如果我尝试这样做,会有一个警告:
% brew uninstall python
Error: Refusing to uninstall /usr/local/Cellar/python@3.9/3.9.1
because it is required by ffmpeg, glib, gobject-introspection, libass and libxml2, which are currently installed.
You can override this and force removal with:
brew uninstall --ignore-dependencies python
忽略依赖项是一个好主意吗?我认为通过以后安装3.8版本,一切都会得到修复,或者至少brew doctor
会在某种程度上帮助我解决问题
顺便问一下:安装Python 3.8的brew命令到底有多精确
目前没有回答
相关问题 更多 >
编程相关推荐