sublime text3 python code prompt completion means (Anaconda)

sublime text3 python code prompt completion means (Anaconda)

Existing environments

win7, python3.8.1, sublime test3 build3211, himself installed the package control, packed logo is in sublime press ctrl + shift + P, the input box will pop up, enter pcin there will be a package control: install package options
Here Insert Picture Description
are generally in the first one. Select it, and wait will jump to a new input window
Here Insert Picture Description
procedure I have not installed over the wall, it is channel_v3 find their own files, modify the configuration file path. If this process does not jump or do not have the option or pop the question to say, it should not be installed or not wearing well.

Select the plug

This view is recommended with sublimeCodeIntel, but tried not pretend, not over the wall may also be the reason, do not want to lower their own manual, so a change, anaconda.

installation

In the window playing anaconda, choose the first one, and so his next ok. Bahrain is finished after this there will be a picture
Here Insert Picture Descriptionof this process, it was not a question of wisdom, all of a sudden get.
package control can also be opened in preference inside, if there are no preference package control that you have not installed package control

Configuration

I thought, ready for can be directly used, and tried it useless, but rather to restart the sublime to me being given a pop
Here Insert Picture Description

<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.

  • 这里需要配置一下python路径。
    1.由于插件本身无法知道Python安装的路径,所以需要手动设置Python主程序的位置。选择Preferences-package Setting-Anaconda-Settings-Default。
    2,100行左右找到python_interpreter,修改成你的python路径。
  • 再需要配置一下插件属性。
    1,选择Preferences-package Setting-Anaconda-Settings-Users选项,键入以下json数据。保存,重启sublime即可
    {
     "python_interpreter":"D:/Anaconda/python.exe",
     "suppress_word_completions":true,
     "suppress_explicit_completions":true,
     "comlete_parameters":true,
     "swallow_startup_errors":true,//关了sublime开启的报错弹窗
     "anaconda_linting":false
     }
    
  • 里面"swallow_startup_errors":true,//关了sublime开启的报错弹窗
  • “python_interpreter”:“D:/Anaconda/python.exe”,//这个要换成一个步骤的python路径
  • 打开win+r的命令窗口,输入你的python路径,能打开python则路径没有问题
  • 在win里面复制来的路径要把反斜线改成正斜线,才不会被识别成转义字符

测试

  • 重启sublime
  • 新建python文件
  • 输入imp等待看有没有反应
  • 装好pandas可以这样试试,输入.之后等一等,我等了10秒它才出来
    Here Insert Picture Description
Released four original articles · won praise 0 · Views 43

Guess you like

Origin blog.csdn.net/weixin_44385465/article/details/104263769