当我们在官网下载安装好sublime test3后
按+调出控制台后输入以下代码:
import urllib.request,os,hashlib; h = ‘2915d1851351e5ee549c20394736b442‘ + ‘8bc59f460fa1548d1514676163dafc88‘; 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)
回车后等待安装,安装后重启sublime text3
按Shift+command+p进入后输入,如图
点击install Package后,如果长时间没响应,需要FQ才能解决的,那不用FQ该如何解决呢?
首先找到,如图:
打开settings-Default,
只需要将"https://packagecontrol.io/channel_v3.json"更换为"http://static.zybuluo.com/parkinwu/x5xsu1vjaob4hmktfexncfbz/channel_v3.json"
将以下代码粘贴至settings-User中,保存重开软件就OK啦!
"channels": [ "http://static.zybuluo.com/parkinwu/x5xsu1vjaob4hmktfexncfbz/channel_v3.json" ],
附上submit text3注册码
ZYNGA INC.
50 User License
EA7E-811825
927BA117 84C9300F 4A0CCBC4 34A56B44
985E4562 59F2B63B CCCFF92F 0E646B83
0FD6487D 1507AE29 9CC4F9F5 0A6F32E3
0343D868 C18E2CD5 27641A71 25475648
309705B3 E468DDC4 1B766A18 7952D28C
E627DDBA 960A2153 69A2D98A C87C0607
45DC6049 8C04EC29 D18DFA40 442C680B
1342224D 44D90641 33A3B9F2 46AADB8F
( 原文:https://blog.csdn.net/qq_29819449/article/details/80130327 )
原文地址:https://www.cnblogs.com/yimoorua/p/10409179.html