简体   繁体   English

Sublime Text 不会安装 EasyClangComplete

[英]Sublime Text won't install EasyClangComplete

On attempting to use package control to install EasyClangComplete in sublime text 3 on gentoo, I got the following error:在 gentoo 上尝试使用 package 控件在 sublime text 3 中安装 EasyClangComplete 时,出现以下错误:

Package Control: The dependency 'pygments' is not currently installed; installing...
Package Control: The dependency 'pygments' is not available
Package Control: The dependency 'pygments' could not be installed or updated

I have pygments installed (dev-python/pygments), and I have also tried installing it using pip (No difference).我安装了 pygments(dev-python/pygments),我也尝试使用 pip 安装它(没有区别)。

In the console, I got this for the sys.path在控制台中,我得到了 sys.path

['/opt/sublime-text3', '/opt/sublime-text3/python3.3.zip', '/home/username/.config/sublime-text-3/Lib/python3.3', '/home/username/.config/sublime-text-3/Packages']

Whereas the pygments module has installed under /usr/lib/python3.9/site-packages .而 pygments 模块已安装在/usr/lib/python3.9/site-packages下。

I don't have python 3.3 installed on this machine, so I guess that sublime comes with it.我没有在这台机器上安装 python 3.3,所以我猜是 sublime 自带的。 I tried pasting the 3.9 package into the sys.path locations regardless, no difference.我尝试将 3.9 package 粘贴到 sys.path 位置,无论如何,没有区别。

I have looked online for other people with this error, only to find people from 2018 who had problems with sublime text dealing with TLS.我已经在网上寻找其他有此错误的人,只是发现从 2018 年开始在处理 TLS 的崇高文本方面遇到问题的人。 This is not the same thing.这不是一回事。 I also think it's probably not an issue with package control or easyclangcomplete, or else I would have been able to find this issue with the keywords I've searched.我还认为 package 控件或 easyclangcomplete 可能不是问题,否则我可以使用我搜索过的关键字找到这个问题。

Suddenly, it seems to work now.突然间,它似乎现在起作用了。

I've done a full system update(Upgraded packages including python 3.8 and 3.9, although I updated sublime text before that to no effect), and restarted everything(Which I had tried before withhout effect), but other than that I can't see why it can find and install pygments now whereas it couldn't before.我已经完成了完整的系统更新(升级包包括 python 3.8 和 3.9,虽然我在此之前更新了 sublime text 没有效果),并重新启动了一切(我之前尝试过但没有效果),但除此之外我不能看看为什么它现在可以找到并安装 pygments 而以前不能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM