what url should I authorize to use pip behind a firewall?

后端 未结 1 1592
情歌与酒
情歌与酒 2020-12-09 04:14

I have a server, onto which I want to use Python, that is behind a company firewall. I do not want to mess with it and the only thing I can do is to make a firewall exceptio

相关标签:
1条回答
  • 2020-12-09 04:29

    You need to open up your firewall to the download locations of any package you need to install, or connect to a proxy server that has been given access.

    Note that the download location is not necessarily on PyPI. The Python package index is a metadata service, one that happens to also provide storage for the indexed packages. As such, not all packages indexed on PyPI are actually downloaded from PyPI, the download location could be anywhere on the internet.

    I'd say you start with opening pypi.python.org, then as individual package installions fail, check their PyPI page and add the download location listed for those.

    0 讨论(0)
提交回复
热议问题