Libressl出现在本地/opt文件中,但是当我运行libressl版本时,它没有出现在我的电脑上

问题描述 投票:0回答:1

我用 libress homebrew 安装了它。当我输入brew list 时它会出现,但它不会出现在我计算机的公共bin 文件夹中。当我输入 libressl version 时,它也没有出现。

我需要在 Pycharm 中使用 selenium。运行代码时在终端中出现的错误:

NotOpenSSLWarning:urllib3 v2 仅支持 OpenSSL 1.1.1+,当前“ssl”模块使用“LibreSSL 2.8.3”编译。请参阅:https://github.com/urllib3/urllib3/issues/3020

我在 /usr/local/opt 文件夹下有一个 libressl 文件。

echo 'export PATH="/usr/local/opt/libressl/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
I tried to export libress but I couldn't. When I try to install it again, it says homebrew is already installed.

UPDATED : Update: There appears to be a libressl arma file in /usr/local/bin. But when I type the libressl version terminal code, I still don't get any results. There is no file about libressl in /usr/bin either

.

python pycharm openssl urllib3 libressl
1个回答
0
投票

当使用 macOS 提供的 Python 版本时,我在 macOS Monterey (12.6.8) 上遇到了同样的错误。我在这些帖子的帮助下解决了这个问题:

最初,我将默认的 macOS Python 版本更改为通过 Homebrew 安装的版本。

此外,我还执行了以下技巧:

pip uninstall urllib3
pip install 'urllib3<2.0'

如果您使用的是 Visual Studio Code(或其他)等编辑器,请记住将 Python 默认解释器路径更改为 /usr/local/bin/python 而不是 /usr/bin!

我希望这些信息对您有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.