【问题标题】:CentOS Stream 8 Ansible 2.9.23 How to install winrm and credssp modulesCentOS Stream 8 Ansible 2.9.23 如何安装winrm和credssp模块
【发布时间】:2021-09-23 11:19:06
【问题描述】:

我们使用 WinRm 和 CredSSP 来连接 Windows 服务器。我正在设置新服务器CentOS Stream 8

根据文档,如果我安装 pip3 install pywinrmcredssp 这个命令它没有找到这个模块。

pip3 install pywinrmcredssp
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting pywinrmcredssp
  Could not find a version that satisfies the requirement pywinrmcredssp (from versions: )
No matching distribution found for pywinrmcredssp

如何在 CentOS Steam 8 中全局安装这个 ansible 模块?

谢谢 SR

【问题讨论】:

    标签: ansible centos winrm centos8 credssp


    【解决方案1】:

    ansible pagepackage page 上的文档都将包名称列为 pywinrm[credssp] 而不是 pf pywinrmcredssp

    【讨论】:

    • pip3 也找不到此模块pywinrmcredssp 给出此消息:Could not find a version that satisfies the requirement pywinrmcredssp (from versions: )
    • 该模块包含方括号。我可以在我的机器上pip3 install pywinrm[credssp]
    • 我必须先安装这个curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3 get-pip.py --force-reinstall,然后 pip3 安装工作。 pip3 install pywinrm requests-ntlm requests requests-credssp
    猜你喜欢
    • 2023-03-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-06-23
    • 1970-01-01
    • 2020-06-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多