【问题标题】:Python Alternative to npm set strict ssl falsePython 替代 npm set strict ssl false
【发布时间】:2019-12-12 23:00:21
【问题描述】:

我正在使用学校计算机 (macbook) 进行编码,并且管理员安装了软件,每当我使用 pip 或 npm 时都会返回 ssl 错误。我知道使用 npm 我可以使用 npm set strict-ssl false 并且想知道是否有类似的方法可以使用 pip 来做到这一点?

【问题讨论】:

    标签: python macos npm terminal pip


    【解决方案1】:

    发件人:https://github.com/pypa/pip/issues/5448

    --trusted-host pypi.org --trusted-host files.pythonhosted.org 作为选项传递应该使其信任这些域。

    【讨论】:

    • 如何将这些放入终端?
    • pip install <package> --trusted-host pypi.org --trusted-host files.pythonhosted.org
    猜你喜欢
    • 1970-01-01
    • 2016-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-10
    • 2011-08-17
    • 2020-03-19
    • 1970-01-01
    相关资源
    最近更新 更多