我应该授权哪个网址在防火墙后使用pip? [英] what url should I authorize to use pip behind a firewall?

查看:60
本文介绍了我应该授权哪个网址在防火墙后使用pip?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要在其上使用Python的服务器,该服务器位于公司防火墙的后面.我不想弄乱它,我唯一能做的就是为特定的URL/域设置防火墙例外.

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 exception for specific URL/domains.

我还想使用pip或easy_install访问PYPI上的软件包.因此,除了* .pypi.python.org之外,您是否知道我应要求在防火墙的例外规则中列出哪个URL?

I also want to access packages located on PYPI, using pip or easy_install. Therefore, do you know which URL should I ask to be listed in the exception rules for the firewall, except *.pypi.python.org?

推荐答案

您需要打开防火墙,打开需要安装的任何软件包的下载位置,或者连接到已获得访问权限的代理服务器.

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.

请注意,下载位置不一定在PyPI上. Python包索引是一种元数据服务,该服务恰好还为已索引的包提供存储.因此,并非所有在PyPI上建立索引的软件包实际上都是从PyPI 下载下载的,下载位置可以在Internet上的任何位置.

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.

我想先从打开pypi.python.org开始,然后在个别软件包安装失败的情况下,检查其PyPI页面并添加列出的下载位置.

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.

这篇关于我应该授权哪个网址在防火墙后使用pip?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆