简体   繁体   中英

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.

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.

蟒蛇错误

Now I am unable to install any python module. 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.

Any idea how I can fix this? I am unable to do any python work due to needed modules unable to being install now

setting DYLD_LIBRARY_PATH before installing any packages with pip solved the issue for me:

export DYLD_LIBRARY_PATH=/usr/local/Cellar/openssl/1.0.2t/lib

(adjust for a valid openssl path in your system)

I found the solution in this github issue .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM