How to Install Python Package in Sublime Editor

Learn to install python package in sublime editor for features like autocomplete and run build within sublime editor itself.

Table of Contents

Install Sublime Package Control
Install Package Python 3
Verify Python Autocomplete and Build

Install Sublime Package Control

First download the package control for sublime editor.

  1. Go to URL: https://packagecontrol.io/installation#st3

    Sublime package control
    Sublime package control
  2. Now note down the location of folder where packages are installed in sublime editor. You can find the location by clicking on Preferences > Browse Packages.

    Browse Packages
    Browse Packages
  3. Save the downloaded file from package control website on clicking “Package Control.sublime-package” link, and place it inside folder located at second step.
  4. Now restart the sublime editor by closing it and then open it again.
  5. To verify the package control is installed correctly, click on Preferences > Package Control menu item. It should open up the package control window.

    Package Control Menu
    Package Control Menu

Install Package Python 3

  1. Now to install any package support, including Python package, go to Preferences > Package Control and choose Install Package.

    Install Package Window
    Install Package Window
  2. In opened window, type ‘python’ to filter the list of packages related to python only.

    Select Python Package to Install
    Select Python Package to Install

Wait for few seconds and python package will be installed into editor.

Verify Python Autocomplete and Build

To verify python support, again restart the IDE. Create a file with name demo.py. Type few simple commands like print. It should open the autocomplete window.

Now type simple hello world code, and enter CTRL + B in keyborad. It will open the output output window in bottom pane and will show the build output of the commands in the demo.py file.

Sublime Build Output
Sublime Build Output

Now you are ready to create and build python programs using sublime editor.

Happy Learning !!

Leave a Reply

0 Comments
Inline Feedbacks
View all comments

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.

Our Blogs

REST API Tutorial