[spacemacs]anaconda自動補全不工做

spacemacs打開python源文件自動補全不工做,打開anaconda-mode buffer看到如下信息:
Traceback (most recent call last):
  File "/Users/matthew/.emacs.d/.cache/anaconda-mode/0.1.5/service_factory-0.1.4-py2.7.egg/service_factory/providers/basehttp.py", line 40, in do_POST
    status, response = self.server.service(data)
  File "/Users/matthew/.emacs.d/.cache/anaconda-mode/0.1.5/service_factory-0.1.4-py2.7.egg/service_factory/service.py", line 50, in __call__
    result = self.apply(method, args)
  File "/Users/matthew/.emacs.d/.cache/anaconda-mode/0.1.5/service_factory-0.1.4-py2.7.egg/service_factory/service.py", line 105, in apply
    server_error(args['id'], error)
  File "/Users/matthew/.emacs.d/.cache/anaconda-mode/0.1.5/service_factory-0.1.4-py2.7.egg/service_factory/errors.py", line 91, in server_error

    raise ServiceException(500, dumps(response))
ServiceException: (500, '{"jsonrpc": "2.0", "id": 1, "error": {"message": "Server error", "code": -32000, "data": "IOError(20, \'no such file or directory\')"}}')
 

  

環境:
OS:windows 7 ,
emacs:emacs-w64-25.1
 
緣由:
推測由於jedi以egg文件(一個zip文件)文件安裝致使IOError。
 
解決方法:
進入目錄C:\Users\<your user name>\.emacs.d\.cache\anaconda-mode\0.1.6\,解壓jedi-0.9.0-py2.7.egg到當前目錄
,而後把解壓出來的文件夾更名爲 jedi-0.9.0-py2.7.egg, 刪除或者把之前的egg文件重命名爲 jedi-0.9.0-py2.7.egg.bak。
python補全就能夠正常工做了。 
相關文章
相關標籤/搜索