Whenever I type pip install on my Mac I get this error: fish: 'pip install tweepy' terminated by signal SIGABRT (Abort)

Whenever I type pip install on my Mac I get this error: fish: 'pip install tweepy' terminated by signal SIGABRT (Abort)

每当我在 Mac 上键入 pip install 时,我都会收到此错误 fish: 'pip install tweepy' terminated by signal SIGABRT (Abort) 然后我得到这个弹出窗口: https://imgur.com/a/uILEq1v 不管我尝试安装什么 Python 库,我都会得到同样的错误

您的问题与鱼无关shell。 pip 使用的 python 2.7 二进制文件正在尝试加载 /usr/lib/libcrypto.dylib 共享库,而该库又会调用 abort()。可能是因为它与您使用 Homebrew 安装的 python 2.7 二进制文件不兼容。您可能最近更新了 macOS,但没有更新 Homebrew 安装的软件。尝试 运行 brew upgrade 然后 brew update.

而且,正如 Mark 在他的评论中指出的那样,python 2.7 已经死了,你真的应该切换到 python 3.x。