[英]Unable to load the repository(PyDev for eclipse)
I encountered the problem.我遇到了这个问题。 When i am trying to create new PyDev project, an error occurs:
当我尝试创建新的 PyDev 项目时,发生错误:
Error:错误:
Unable to load the repository http://pydev.org/updates
Unknown Host: http://pydev.org/updates/content.xml
When I open this link( http://pydev.org/updates ) in my browser, it redirects me here - http://pydev.org/updates/content.xml当我在浏览器中打开此链接( http://pydev.org/updates )时,它会将我重定向到这里 - http://pydev.org/updates/content.xml
So i understand Eclipse cannot find the repository because there's nothing to look at this link... Does anybody know how to solve this problem?所以我明白 Eclipse 找不到存储库,因为没有什么可以看这个链接......有谁知道如何解决这个问题?
Update:更新:
I installed PyDev as described at PyDev Manual (Help-Install New software-and so on...)我按照PyDev 手册中的说明安装了PyDev (帮助-安装新软件等等...)
If the url doesn't work directly, you may visit the update site in the browser (ie: http://www.pydev.org/updates/ ) and check the note to where it does redirect.如果 url 不能直接工作,您可以在浏览器中访问更新站点(即: http : //www.pydev.org/updates/ )并检查重定向到何处的注释。
The current url it redirects to is http://dl.bintray.com/fabioz/pydev/5.8.0/ but it changes at each release, so, you may want to check the current release and update the version accordingly.它重定向到的当前 url 是http://dl.bintray.com/fabioz/pydev/5.8.0/但它在每个版本中都会发生变化,因此,您可能需要检查当前版本并相应地更新版本。
For older versions, it's possible to visit (in the browser) http://www.pydev.org/update_sites/ and check the existing update site urls (again, you may visit the update site url to see where it does redirect to and use that directly).对于旧版本,可以访问(在浏览器中) http://www.pydev.org/update_sites/并检查现有的更新站点 url(同样,您可以访问更新站点 url 以查看它重定向到的位置和直接使用)。
Notes:笔记:
Now http://www.pydev.org/updates points to current version of Pyded: https://dl.bintray.com/fabioz/pydev/5.3.1/现在http://www.pydev.org/updates指向 Pyded 的当前版本: https ://dl.bintray.com/fabioz/pydev/5.3.1/
But this link won't work unless you change the protocol to http
instead of https
.但是除非您将协议更改为
http
而不是https
否则此链接将不起作用。 So, the working link is:所以,工作链接是:
http://dl.bintray.com/fabioz/pydev/5.3.1/ http://dl.bintray.com/fabioz/pydev/5.3.1/
i had the same problem.我有同样的问题。 I was behind a proxy and once i set the proxy (as described here: http://www.mkyong.com/web-development/how-to-configure-proxy-settings-in-eclipse/ ) it worked.
我在代理后面,一旦我设置了代理(如下所述: http : //www.mkyong.com/web-development/how-to-configure-proxy-settings-in-eclipse/ )它就起作用了。 Not sure if you have the same problem though.
不确定你是否有同样的问题。
Taken from this answer by Sukupa91 :摘自Sukupa91 的这个答案:
Go to Window --> Preference --> General --> Network Connection --> select Direct from drop down!
转到窗口 --> 首选项 --> 常规 --> 网络连接 --> 从下拉菜单中选择直接!
This worked for me.这对我有用。
我会建议检查您是否使用 VPN,因为我使用的是办公室 VPN,所以我收到了错误
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.