安装emmet时pyv8下载失败
解决Sublime提示 Sublime Text Error while loading PyV8 binary:exit code 1 Try to manually install Pyv8 form https://github.com/emetio/pyv8-binaries
今天打开sublime遇到一个提示 如上图Sublime Text Error while loading PyV8 binary:exit code 1 Try to manually install Pyv8 form https://github.com/emetio/pyv8-binaries 于是到网上寻找答案 解决方法如下:
- Go to the link provided in the dialog box and download the plugin. See below for more details
- Go to your windows’ home directory (
C:\Users\UserName
on Windows 7, something likeC:\Documents and Settings\UserName
on Windows XP) and make sure you can view hidden and system directories - Go to
C:\Users\UserName\AppData\Roaming\Sublime Text 2\Packages
and create aPyV8
directory if it does not exist - Change to
C:\Users\UserName\AppData\Roaming\Sublime Text 2\Packages\PyV8
and copy the files contained in the archive you downloaded at the first step - Restart Sublime Text
-
去gihub下载 PyV8,连接地址:https://github.com/emmetio/pyv8-binaries#readme
-
然后找到你的Sublime_text_3的packages的安装包路径
a.如果你是windows系统:解压文件至Packages\PyV8文件夹内(Preferences – Browser Packages),重启解决。
b.如果你是linux/ubuntu,找到相应的路径,根据我在unbuntu14.04下面,解决如下:
(1)在当前用户中使用命令:ll
(2)你会发现一个.config的隐藏文件夹
(3)然后依次进去找到sublime_text
(4)Packages创建PyV8文件夹,把刚才下载的文件解压进去,重启解决。
Post Views: 6,549
原因:
两个问题是一样,原因都是PyV8没有下载下来。
解决方法:
1、根据提示,打开上面链接,然后下载你适合的版本如图:
2、把下载好的文件,解压之后,放在如下图的目录下,重启一下sublime就可以工作啦啦
备注:PyV8这个文件夹是我们自己创建的,下载下来的压缩包解压后有连个文件,.PyV8.pyd 和PyV8.py。然后你就新建一个PyV8的文件夹,放在Data/Packages目录下,这个目录也就是你下载的插件存在的目录。最快捷来到这个目录的方法是这样的,如图:
这个问题就这样解决。