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

查看:22
本文介绍了我应该授权哪个 url 在防火墙后面使用 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下载的,下载位置可以在互联网上的任何位置.

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.

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

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