Created
September 26, 2018 05:36
-
-
Save 023Sparrow/1c3a9ac532d7c07b75ba70c8a9e268b0 to your computer and use it in GitHub Desktop.
ST3 Anaconda 插件错误 <Anaconda.anaconda_lib.workers.local_worker.LocalWorker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
错误: | |
<Anaconda.anaconda_lib.workers.local_worker.LocalWorker object at 0x7f9ce2ad9390> initial check failed because: | |
can not connect to /home/chenzewei/.local/share/anaconda/run/anaconda-2/anaconda.sock. tried to connect 21 times during 2 seconds | |
check that there is Python process executing the anaconda jsonserver.py script running in your system. If there is, check that the Unix Domain Socket file /home/username/.local/share/anaconda/run/anaconda-2/anaconda.sock exists and that you can connect to it writing the following script in your Sublime Text 3 console: | |
import socket; socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect(/home/username/.local/share/anaconda/run/anaconda-2/anaconda.sock) | |
If anaconda works just fine after you received this error and the command above worked you can make anaconda to do not show you this error anymore setting the 'swallow_startup_errors' to 'true' in your configuration file. | |
系统: | |
MS Windows 10 64bit 家庭中文版 版本1803 (OS 内部版本 17133.1) | |
解决方法: | |
1、goto path "C:\Users\user-name\AppData\Roaming\Sublime Text 3\Packages\Anaconda\anaconda_lib\linting\pyflakes"; | |
2、open file named checker.py; | |
3、将 59 行处的脚本进行修改 【请勿直接复制粘贴】 | |
if PY34: | |
LOOP_TYPES = (ast.While, ast.For) | |
else: | |
LOOP_TYPES = (ast.While, ast.For, ast.AsyncFor) | |
改为 | |
if PY34: | |
LOOP_TYPES = (ast.While, ast.For, ast.AsyncFor) | |
else: | |
LOOP_TYPES = (ast.While, ast.For) | |
4、再重启 sublime 就不报错了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
20180930:还是会报错,但不是每次启动都出现