Is there a good place to learn how to link sublime text 3 with python?


#1

Thank you for the help!


#2

looking google finds the docs for the package:

https://sublimerepl.readthedocs.io/en/latest/

instructions are pretty easy to follow

personally, you should just install python from the official python website, and use the command line to run your python script:

Ensure python is added to PATH (during installation, this option shows)


#3

Hello - I have downloaded Python and Sublime Text 3 but I am still unable to link them - any advice would be great.

I think it’s to do with my path… My error is below:

Traceback (most recent call last):
File “C:\File\Saved\FormatFile.py”, line 1, in
import requests
ModuleNotFoundError: No module named ‘requests’
[Finished in 0.2s with exit code 1]
[shell_cmd: python -u “C:\File\Saved\FormatFile.py
[dir: C:\File\Saved]
[path: C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn;C:\Python;C:\Users\apatterson.GROUPM\AppData\Local\Programs\Python\Python36-32\Scripts;C:\Users\Name.GROUP\AppData\Local\Programs\Python\Python36-32]


#4

well, your problem seems to be you attempt to import a library (requests) into your formatFile.py script, but the library isn’t installed, google how to install this library for your python version


#5

Resolved - thanks for pointing in the right direction!


#6