Sublime Forum

Adding python modules to sublime text?

#1

Hello All,
This is my first post on the forums, and I have what many of you may consider a very simple question(s) however I am new to both sublime text and python.
I am currently building a simple web app in python, and I was able to setup a new build system [python 2.7] in sublime text.
My question is related to an error I get on build

Traceback (most recent call last):
File “C:\xxxxxxxxxxxxxxxxx”, line 1, in
import requests
ImportError: No module named requests
[Finished in 0.1s with exit code 1]

I understand what the error is saying however I do not understand how to import the module into sublime text so that I can use things like “requests” and “json” etc.

I have two questions:

  1. Is there a way that I can load all current python modules into sublime text? [if so where do I get that from?]
  2. How do I go about adding these modules once I find them? *

I know this is a very basic set of question, please keep in mind I am new to this.*

0 Likes