在防火墙后面如何下载 python .egg 文件
我将尝试涡轮齿轮,但我使用的是 Windows Vista。 然而,由于防火墙代理问题,我似乎无法下载在 Windows 环境中安装涡轮齿轮所需的 .egg 文件。 我确实有一个可启动的,或者我可以制作一个可启动的 Linux USB,我可以尝试 cygwin,但我不知道从哪里开始使用 cygwin,所以我想知道什么可以解决安装涡轮齿轮之类的防火墙/代理问题。
如果可能的话,是否有一些涡轮齿轮的非在线版本,我可以通过访问网站下载,然后以某种方式将该非在线版本导入到我的Python环境中?
非常感谢!:)
I'm going to try out turbogears however I'm on windows vista.
however due to firewall proxy problems, it seems i can't download .egg files which is required for setup turbogears to get installed in my windows environment.
I do have a bootable, or I can make a bootable Linux USB, I can try cygwin but I am not sure where to start with cygwin, so I was wondering what would solve my firewall / proxy problem of installing something like turbogears.
if it's possible, is there some non-online version of turbogears that i could just download from visiting a site and then somehow importing that non-online version into my python environment?
thanks so much!:)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
也许问题不在于防火墙本身,而在于您需要使用 HTTP 代理。 如果您确实需要使用代理,请尝试设置 http_proxy 环境变量。 可能是您的防火墙使用 NTLM 代理身份验证(Python 不支持); 在这种情况下,请尝试在本地计算机上设置 APS 代理服务器,并将 http_proxy 指向本地主机。
Perhaps the problem is not with the firewall per se, but with the fact that you need to use an HTTP proxy. If you do need to use a proxy, try setting the http_proxy environment variable. It might be that your firewall uses NTLM proxy authentication (which Python doesn't support); in this case, try setting up an APS proxy server on your local machine, and point http_proxy to localhost.
您可以从 Windows 本地运行 TG。
tgsetup.py
安装方法使用 setuptools ,取决于能否从互联网引入.egg
文件。 正如其他人建议的那样,最好的方法是打开鸡蛋的防火墙。 TG 有一个 egg 文件列表,您可以尝试手动引入(可能来自打开互联网连接)。可以手动安装 Egg,但不推荐。
如果无法更改防火墙规则,您可以使用具有预配置 TG 包的 Linux(可引导或虚拟)安装。 例如,Fedora 有一个。 这样,TG 包(希望)能够以
.rpm
文件的形式穿过防火墙。You can run TG locally from windows. The
tgsetup.py
method of installation uses setuptools which depends on being able to bring in.egg
files from the internet. The best approach would be to open the firewall to eggs, as others suggested. TG has a list of egg files that you can try to bring manually (maybe from an open internet connection).Installing an egg manually is possible, but not recommended.
If changing the firewall rules is not possible, you can use a Linux (bootable or virtual) installation that has a pre-configured TG package. For example, Fedora has one. This way, the TG package crosses (hopefully) the firewall as an
.rpm
file.您可以使用旧的防火墙黑客...尝试在末尾添加“?file.jpg”或“#file.jpg”(无引号)。 当您尝试下载它允许的图像文件时,防火墙可能会看到这一点,响应服务器可能不会关心您附加了查询字符串,并且(我认为)python 只会看到一个鸡蛋。
You could use the old firewall hack... try throwing "?file.jpg" or "#file.jpg" on the end (sans quotes). The firewall may see this as you're trying to download an image file which it'll allow, the responding server probably won't care that you've attached a query string, and (I think) python will just see an egg.
将 python 添加到防火墙例外列表中。 当然,只要确保你没有运行任何用 python 编写的有问题的代码即可。
Add python to the firewall exceptions list. Just make sure you don't run any questionable code made in python, of course.
这可能不是您想要的,但您可以绕过代理隧道 SSH< /a>. 另一种可能性是使用 Tor。
This might not be what you are looking for, but you can bypass the proxy tunneling SSH. Another possibility is using Tor.