Home > Development Tools > sublime > body text

How to configure Sublime Text3 to automatically associate python

藏色散人
Release: 2020-07-22 13:23:24
forward
4155 people have browsed it

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())
Copy after login
  • 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,
}
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!