Pip can't install any package

前端 未结 3 1921
灰色年华
灰色年华 2020-12-30 16:23

Hello approximately about 2 weeks ago I started not being able to download python packages or even access the pypi website which is \"unreachable\" on chrome and firefox.

3条回答
  •  借酒劲吻你
    2020-12-30 16:47

    So for anybody searching for a solution, I found this which might not be optimal but at least it works, instead of pip install package use this command

    python.exe -m pip install package --proxy="proxy:port"

    You can find a big list of free proxies here : https://free-proxy-list.net/ (note that not all of them work and you might wanna try multiple before getting one that works)

    So for example you could use : python.exe -m pip install numpy --proxy="179.185.199.195:8080"

    And that works, Shraneid

提交回复
热议问题