pip always fails ssl verification

后端 未结 3 448
滥情空心
滥情空心 2020-11-28 12:41

Pip always fails ssl even when I do pip install dedupe or pip install --trusted-host pypi.python.org dedupe

The output is always the same n

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-28 13:27

    The error above or one like it was caused by the virtual machine (VM) not be time synchronized, my guest Ubuntu VM was several days in the past.

    I ran this commend to get the VM to pick up the correct network time:

    sudo timedatectl set-ntp on
    

    This makes the Ubuntu guest OS get the network time. (You may have to provide a network time source... I used this article: Digital Ocean - How to set time on Ubuntu)

    Check the time is correct:

    timedatectl
    

    Re-run the failing pip command.

提交回复
热议问题