转自:http://blog.initm.com/sublime-text/
今天打开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
- 进入 路径 C:\Users\UserName\AppData\Roaming\Sublime Text 2\Packages\PyV8 没有的文件夹新建
- 我自己的文件是 C:\Users\BianGX\AppData\Roaming\Sublime Text 3\Packages\PyV8 把下载的 pyv8-win64-p3 解压 拷贝进来就好了.
- b.如果你是linux/ubuntu,找到相应的路径,根据我在unbuntu14.04下面,解决如下:
(1)在当前用户中使用命令:ll
(2)你会发现一个.config的隐藏文件夹
(3)然后依次进去找到sublime_text
(4)Packages创建PyV8文件夹,把刚才下载的文件解压进去,重启解决。
时间: 2024-10-20 08:02:49