1.下载package control
https://packagecontrol.io/installation
2.将下载的包放到Sublime Text 3\Packages中
3.在subline里crtl+~打开控制台复制代码到控制台里import
urllib2,os;
pf=‘Package
Control.sublime-package‘;
ipp =
sublime.installed_packages_path();
os.makedirs(
ipp )
if
not
os.path.exists(ipp)
else
None;
urllib2.install_opener(
urllib2.build_opener(
urllib2.ProxyHandler(
)));
open(
os.path.join(
ipp,
pf),
‘wb‘
).write(
urllib2.urlopen(
‘http://sublime.wbond.net/‘
+pf.replace(
‘ ‘,‘%20‘
)).read());
print(
‘Please restart Sublime Text to
finish
installation‘)
4.重启subline即可
- 如果在Perferences->package settings中看到package control这一项,则安装成功。
时间: 2024-10-09 17:41:23