SublimeText3 is Building in Python 2 but I want to use Python 3. How do I Change Versions (Ubuntu 18.04)?
up vote
0
down vote
favorite
I'm trying to get SublimeText3 to build with Python 3 on Ubuntu 18.04. I have python 3.6.6 installed on my Ubuntu machine, but Sublime is defaulting to Python 2 when I press ctrl+b. When I search with the "build with" option, no Python 3 option is available.
What do I have to do to get the option of using Python 3 in my SublimeText3 project builds?
python sublimetext3 python-3.6 sublime-build
add a comment |
up vote
0
down vote
favorite
I'm trying to get SublimeText3 to build with Python 3 on Ubuntu 18.04. I have python 3.6.6 installed on my Ubuntu machine, but Sublime is defaulting to Python 2 when I press ctrl+b. When I search with the "build with" option, no Python 3 option is available.
What do I have to do to get the option of using Python 3 in my SublimeText3 project builds?
python sublimetext3 python-3.6 sublime-build
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to get SublimeText3 to build with Python 3 on Ubuntu 18.04. I have python 3.6.6 installed on my Ubuntu machine, but Sublime is defaulting to Python 2 when I press ctrl+b. When I search with the "build with" option, no Python 3 option is available.
What do I have to do to get the option of using Python 3 in my SublimeText3 project builds?
python sublimetext3 python-3.6 sublime-build
I'm trying to get SublimeText3 to build with Python 3 on Ubuntu 18.04. I have python 3.6.6 installed on my Ubuntu machine, but Sublime is defaulting to Python 2 when I press ctrl+b. When I search with the "build with" option, no Python 3 option is available.
What do I have to do to get the option of using Python 3 in my SublimeText3 project builds?
python sublimetext3 python-3.6 sublime-build
python sublimetext3 python-3.6 sublime-build
asked yesterday
Craig
104
104
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Tools -> Build System -> New Build System
{
"cmd": ["python3", "-u", "$file"],
"file_regex": "^[ ]File "(...?)", line ([0-9]*)",
"selector": "source.python"
}
Save it with the name python3
Go to Tools -> Build system -> and check python3
Try to test it using:
import sys
print(sys.version)
Press: Ctrl + b
Source: https://gist.github.com/zaemiel/4fbd8b5125fda7a140be
Thank you! Had one typo throwing me for a loop but I found it!
– Craig
yesterday
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Tools -> Build System -> New Build System
{
"cmd": ["python3", "-u", "$file"],
"file_regex": "^[ ]File "(...?)", line ([0-9]*)",
"selector": "source.python"
}
Save it with the name python3
Go to Tools -> Build system -> and check python3
Try to test it using:
import sys
print(sys.version)
Press: Ctrl + b
Source: https://gist.github.com/zaemiel/4fbd8b5125fda7a140be
Thank you! Had one typo throwing me for a loop but I found it!
– Craig
yesterday
add a comment |
up vote
0
down vote
accepted
Tools -> Build System -> New Build System
{
"cmd": ["python3", "-u", "$file"],
"file_regex": "^[ ]File "(...?)", line ([0-9]*)",
"selector": "source.python"
}
Save it with the name python3
Go to Tools -> Build system -> and check python3
Try to test it using:
import sys
print(sys.version)
Press: Ctrl + b
Source: https://gist.github.com/zaemiel/4fbd8b5125fda7a140be
Thank you! Had one typo throwing me for a loop but I found it!
– Craig
yesterday
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Tools -> Build System -> New Build System
{
"cmd": ["python3", "-u", "$file"],
"file_regex": "^[ ]File "(...?)", line ([0-9]*)",
"selector": "source.python"
}
Save it with the name python3
Go to Tools -> Build system -> and check python3
Try to test it using:
import sys
print(sys.version)
Press: Ctrl + b
Source: https://gist.github.com/zaemiel/4fbd8b5125fda7a140be
Tools -> Build System -> New Build System
{
"cmd": ["python3", "-u", "$file"],
"file_regex": "^[ ]File "(...?)", line ([0-9]*)",
"selector": "source.python"
}
Save it with the name python3
Go to Tools -> Build system -> and check python3
Try to test it using:
import sys
print(sys.version)
Press: Ctrl + b
Source: https://gist.github.com/zaemiel/4fbd8b5125fda7a140be
edited yesterday
answered yesterday
Dekel
42k44567
42k44567
Thank you! Had one typo throwing me for a loop but I found it!
– Craig
yesterday
add a comment |
Thank you! Had one typo throwing me for a loop but I found it!
– Craig
yesterday
Thank you! Had one typo throwing me for a loop but I found it!
– Craig
yesterday
Thank you! Had one typo throwing me for a loop but I found it!
– Craig
yesterday
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53366919%2fsublimetext3-is-building-in-python-2-but-i-want-to-use-python-3-how-do-i-change%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown