[英]How to fix "Python quit unexpectedly" when trying to install a module through pip install? Terminal Crashes with message "zsh: abort"
I think I broke my terminal.我想我打破了我的终端。 For some reason I am unable to use pip install to install anything on my Macbook Pro.
出于某种原因,我无法使用pip install在我的 Macbook Pro 上安装任何东西。
When I try to install such as当我尝试安装诸如
pip install Flask
I get我得到
zsh: abort pip install Flask
I've tried both on pip and pip, but I get the same error on both.我在 pip 和 pip 上都尝试过,但是我在两者上都遇到了同样的错误。
Now I am unable to install any python module.现在我无法安装任何 python 模块。 I thought it was due to Bash -> zsh from Catalina update but when I changed it to Bash and tried the same, I get the same result.
我认为这是由于 Bash -> Catalina 更新的 zsh 但是当我将其更改为 Bash 并尝试相同时,我得到了相同的结果。
Any idea how I can fix this?知道我该如何解决这个问题吗? I am unable to do any python work due to needed modules unable to being install now
由于需要的模块现在无法安装,我无法做任何 python 工作
setting DYLD_LIBRARY_PATH before installing any packages with pip solved the issue for me:在使用 pip 安装任何软件包之前设置 DYLD_LIBRARY_PATH 为我解决了这个问题:
export DYLD_LIBRARY_PATH=/usr/local/Cellar/openssl/1.0.2t/lib
(adjust for a valid openssl path in your system) (调整系统中有效的 openssl 路径)
I found the solution in this github issue .我在这个github 问题中找到了解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.