错误:找不到Requirement.parse的合适发行版(' pytest-runner')

时间:2018-06-05 03:14:58

标签: python-3.x ssl pip pypi

我试图通过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

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

1 个答案:

答案 0 :(得分:2)

首先按如下所示安装pytest-runner,然后重试:

pip3 install pytest-runner

python3 -m pip install pytest-runner

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