---
title: "Sublime Text3 安装Package Control"
author: "Chagroy"
date: "2014-03-10T23:40:27Z"
tags: []
categories: ["Web前端"]
slug: "sublime-text3-package-control"
draft: false
lastmod: "2014-03-10T23:40:27Z"
id: 2029199
url: "https://chagroy.iteye.com/blog/2029199"
---

1、[https://sublime.wbond.net/installation#st3](https://sublime.wbond.net/installation#st3)

 

```
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; 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://sublime.wbond.net/' + 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) 
```

` 
`