Sublime Forum

Sublime text 3 can't install package control

#1

I’m using Sublime text build 3114. Recently I can’t install Package Control.
First I tried the auto installation. I copied this code in the command pallete.

import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp  = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try           manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

But I got an error after entering.

urllib.error.URLError: <urlopen error [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

Second I tried the manual installation. But the plugin address had been invalid ‘https://packagecontrol.io/installation#st3’. So how can I install it now? Did anyone have the same problem?

0 Likes

#2
0 Likes

#3

Thanks for your answer! I eventually know the reason. It’s really a pity for the Chinese developers…

0 Likes

#4

Hi blue, I am from China and I met the same problem… Could you tell me the reason and did you solve it lastly? Thanks a lot :wink:

0 Likes

#5

I’m sorry that I read the message just now. The package control installation fails because of the Chinese Great Wall firewall so we have to use VPN to solve it.

0 Likes