【问题标题】:Error: Could not find suitable distribution for Requirement.parse('pytest-runner')错误:找不到 Requirement.parse('pytest-runner') 的合适分布
【发布时间】:2018-11-14 10:22:31
【问题描述】:

我尝试通过 pip 安装 MechanicalSoup 包,但出现以下错误:

    Download error on https://pypi.org/simple/pytest-runner/: [SSL: 
        TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version 
        (_ssl.c:645) -- 
    Some packages may not be found!
    Couldn't find index page for 'pytest-runner' (maybe misspelled?)
    No local packages or working download links found for pytest-runner

我尝试了几种方法,但都无法帮助我。

【问题讨论】:

标签: python-3.x ssl pip pypi


【解决方案1】:

先安装pytest-runner如下再试:

pip3 install pytest-runner

或者,

python3 -m pip install pytest-runner

如果权限被拒绝,您可能需要添加 --user 标签。

【讨论】:

    猜你喜欢
    • 2019-02-14
    • 2020-05-13
    • 2019-09-15
    • 2017-07-09
    • 1970-01-01
    • 2021-10-23
    • 2023-04-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多