打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Anaconda.anaconda_lib.workers.local_worker.LocalWorker object at 0x0000027B7733DEB8
初学python 用sublimetxt3,安装Anaconda插件,但是打开sublimetxt时出错,弹框报错如下
 

查询bing了解到 https://github.com/DamnWidget/anaconda/issues/527

please find below the solution if you are using python34(3.4) or above.
check your python version: goto command prompt and type "python" hit enter and the first line you get is your python version.

  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. search for word LOOP_TYPES in the file(probably in first 80 lines) which is looks like as below if its latest version of anaconda.

    if PY34:
    LOOP_TYPES = (ast.While, ast.For)
    else:
    LOOP_TYPES = (ast.While, ast.For, ast.AsyncFor)

  4. replace above 4 lines with the below shown 4 lines.

    if PY2 or PY32 or PY33:
    LOOP_TYPES = (ast.While, ast.For, ast.AsyncFor)
    else:
    LOOP_TYPES = (ast.While, ast.For)

  5. restart your sublime.

采用上述做法处理后,不再弹出错误。

即打开C:\Users\user_name\AppData\Roaming\Sublime Text 3\Packages\Anaconda\anaconda_lib\linting\pyflakes下面的checker.py文件

将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)

重启sublime txt 问题解决

具体原因 后续继续观察学习 有了解的同学 请不吝赐教 十分感谢


  
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
sublime报错:<Anaconda.anaconda_lib.workers.local-worker>
pyinstaller打包报错: RecursionError: maximum recursion depth exceeded
json extradata
Mac OS X 10.10安装深度学习框架Caffe教程
走进Python: 为Python增加新语法
ubuntu系统问题
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服