问题
I encountered the problem. When i am trying to create new PyDev project, an error occurs:
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
So i understand my Eclipse: he can not find repository because there's nothig to look at this link... Does anybody know how to solve this problem?
P.S. I installed PyDev as described here http://pydev.org/manual_101_install.html (Help-Install New software-and so on...) Thank you.
回答1:
If the url doesn't work directly, you may visit the update site in the browser (i.e.: http://www.pydev.org/updates/) and check the note to where it does redirect.
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.
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).
Notes:
- the redirects are to https, but some users seem to experience issues with it, so, using http may be an option.
- check your firewall to see if it's not blocking eclipse.
- if you're under a vpn, you may want to check if it's blocking something (i.e.: maybe try without the vpn).
回答2:
Now http://www.pydev.org/updates points to current version of 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
. So, the working link is:
http://dl.bintray.com/fabioz/pydev/5.3.1/
回答3:
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. Not sure if you have the same problem though.
回答4:
Taken from this answer by Sukupa91:
Go to Window --> Preference --> General --> Network Connection --> select Direct from drop down!
This worked for me.
回答5:
i will advice to check if your are on VPN or not , i was getting the error because i was on office VPN
来源:https://stackoverflow.com/questions/5714994/unable-to-load-the-repositorypydev-for-eclipse