Home  >  Article  >  Development Tools  >  How to configure Sublime Text3 to automatically associate python

How to configure Sublime Text3 to automatically associate python

藏色散人
藏色散人forward
2020-07-22 13:23:244201browse

The following tutorial column of sublime will introduce to you the method of Sublime Text3 to configure automatic association of python. I hope it will be helpful to friends in need!

How to configure Sublime Text3 to automatically associate python

1. Install Package Control

  • Open via the shortcut key ctrl ` or View > Show Console Console, and then paste the corresponding Python installation code
  • Sublime Text 3 installation code and press Enter
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
  • Restart Sublime Text 3
  • If in Perferences ->If you see the package control item in package settings, the installation is successful

2. How to install the plug-in using Package Control

  • Press Ctrl Shift P to bring up the command panel
  • Enter install to bring up the Install Package option and press Enter, then select the plug-in to be installed in the list, as shown in the figure

  • Enter Anaconda and install

3. Add to preferences => package setting => package contrl => setting - user

4. Select the Settings-Default option and search for python_interpreter

5. Modify the configuration

Select the Settings-Users option and type in the following json data. Save and restart ST3.

{
    "python_interpreter": "C:/Python27/python.exe",
    "suppress_word_completions":true,
    "suppress_explicit_completions":true,
    "complete_parameters":true,
}

Next, when you write python code using sublime, there will be a prompt function.

The above is the detailed content of How to configure Sublime Text3 to automatically associate python. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete