Where does pip download .whl files?

后端 未结 2 850
没有蜡笔的小新
没有蜡笔的小新 2021-01-12 04:23

I\'d like to install a certain python package with pip but because of the proxy I am sitting behind pip cannot connect to the internet.

So my question is: Where does

2条回答
  •  孤城傲影
    2021-01-12 05:10

    pip searches the Python package index (PyPI), each package lists downloads (including wheels, if there are any) with a direct download link on the page. Package pages have the form of https://pypi.python.org/pypi/ or https://pypi.python.org/pypi// for specific versions.

    If you can only download wheels manually with your browser, it doesn't matter where you put the wheel file. Just install the wheel file directly:

    pip install path/to/wheel.whl
    

    However, pip supports downloading over a proxy just fine:

    pip --proxy username:password@proxy_server:proxy_port install ...
    

    See the --proxy command line switch documentation. You can add the proxy setting to a pip configuration file so you don't have to set it on the command line each time.

提交回复
热议问题