zsh:找不到匹配项:请求[安全]
zsh: no matches found: requests[security]
我正在尝试 运行 python urllib2 脚本并收到此错误:
InsecurePlatformWarning: A true SSLContext object is not available.
This prevents urllib3 from configuring SSL appropriately and may cause
certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
在谷歌搜索错误解决方案后,堆栈溢出是下载请求的安全包:
pip install requests[security]
但是当我 运行 我得到错误...
zsh: no matches found: requests[security]
任何人都知道为什么 zsh 没有选择这个库,它 installs/upgrades 请求很好,我不知道为什么它不起作用
我运行在 Debian 服务器上安装这个...
zsh
使用 square brackets for globbing / pattern matching.
这意味着如果您需要将文字方括号作为参数传递给命令,您要么需要转义它们,要么像这样引用参数:
pip install 'requests[security]'
如果您想永久禁用 pip
命令的 globbing,您可以将此添加到 ~/.zshrc
:
alias pip='noglob pip'
我正在尝试 运行 python urllib2 脚本并收到此错误:
InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
在谷歌搜索错误解决方案后,堆栈溢出是下载请求的安全包:
pip install requests[security]
但是当我 运行 我得到错误...
zsh: no matches found: requests[security]
任何人都知道为什么 zsh 没有选择这个库,它 installs/upgrades 请求很好,我不知道为什么它不起作用
我运行在 Debian 服务器上安装这个...
zsh
使用 square brackets for globbing / pattern matching.
这意味着如果您需要将文字方括号作为参数传递给命令,您要么需要转义它们,要么像这样引用参数:
pip install 'requests[security]'
如果您想永久禁用 pip
命令的 globbing,您可以将此添加到 ~/.zshrc
:
alias pip='noglob pip'