filmov
tv
How To: Run Python 2.7 and Python 3.5 Script in Sublime Text 3

Показать описание
A quick tutorial on how to run either a Python 2.7 script or a Python 3.5 script using Sublime Text 3.
The contents of the sublime-build file are:
{
"cmd": ["/usr/bin/python3", "$file"],
"file_regex": "file \"(...*?)\", line([0-9]+)"
}
If you are using either Mac or Windows, instead of using the "whereis" command to find your installation path to Python, you can just run the following script, which will output the path to where Python is installed on your machine:
```
import os
import sys
```
Website:
The contents of the sublime-build file are:
{
"cmd": ["/usr/bin/python3", "$file"],
"file_regex": "file \"(...*?)\", line([0-9]+)"
}
If you are using either Mac or Windows, instead of using the "whereis" command to find your installation path to Python, you can just run the following script, which will output the path to where Python is installed on your machine:
```
import os
import sys
```
Website:
How to install Python 2.7 on Windows 10. Python installation Windows tutorial
How to Install python2 on Windows 10 or 11 alongside python3 - 2023
How to write code that works on both Python 2 and Python 3?
How to Run Python Programs ( .py files ) on Windows 11 ( All Options )
How to Run a Python ( .py ) File in Windows laptop / computer
Easiest way to Convert Python 2 program to Python 3 Without Coding
Install Python (3.X or 2.X) from source code on Linux (Centos6/7/8 or RHEL6/7/8)
Installing and running Python 2 & 3 in Mac OS X
Python Course Class 10: DSA Algorithm 1 - Linear Search |Python| Tutorial & 5 Practice Questions
Installing and running Python 2 & 3 in Windows 10
Installing python packages manually without pip command
Run Two Python Scripts at Once | #Shorts
How to switch Python versions in Windows 10. Set Python path
Using multiple Python version on Windows
Install Pip with Python 2.7 on Ubuntu 20.04 using get-pip.py
HOW TO DOWNLOAD AND INSTALL PYTHON 2.7 IN 2 MINUTES | DOWNLOAD AND INSTALL PYTHON 2.7 WINDOWS 10
python 2 7 exe installer
How to Run Python 2 and Python 3 scripts in Kali Linux 2020 | Python in Kali Linux
How to Install Python Latest Version on Linux | Complete Installation
How to Install Python | Install Python on Window 7(32 bit/64bit)
Python Tutorial - how to use multiprocessing to run multiple functions at the same time
How to Install Python 3.6.2 on Windows 7/8/10 ( 64 bit )
RHEL 8 Beta - Using Python 2 and Python 3
Project Setup for Python 2 AND 3 [with Virtualenv]
Комментарии