question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't use python3

See original GitHub issue

I’ve followed all recommendations and questions asked around and have downloaded the latest version of vs but when I set python to use python3 instead of 2 it just doesn’t work. My config:

{
    "python.jediEnabled": false,
    "python.pythonPath": "/usr/local/bin/python3",
    "workbench.colorTheme": "Solarized Light",
    "code-runner.runInTerminal": true,
    "code-runner.defaultLanguage": "python",
    "code-runner.clearPreviousOutput": true
}

Doing

"code-runner.executorMap":
{
"python": "python3"
}

isn’t working. Any help please?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
Davinciblecommented, Sep 1, 2019

The above suggestion also fixed my issue, would be nice if python 3 was enabled by default, as python 2 will be unsupported soon anyways

4reactions
FooKiicommented, Sep 20, 2018

hey there, i think u can try simply add “code-runner.executorMap.python”: “python3 -u” to the user settings and it should work. cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cmd Windows "python" command works, but "python3" doesn ...
TL;DR: python3 is not a valid command on Windows, regardless of the distribution that it comes with (Anaconda in your case). Share.
Read more >
Python 3 is not recognized as an external or internal command
Python 3 Course: https://bit.ly/ python3 -mastery Fixed: Python 3 ... Full Stack Computer Vision Tutorial with Tensorflow, Python, Tensorflow.
Read more >
Python 3 Installation & Setup Guide
The first step to getting started with Python is to install it on your machine. In this tutorial, you'll learn how to check...
Read more >
Why doesn't python 3.10.0 show up on PowerShell?
When I type “python3”, it shows some kind of “not found” message". If I can, I will add screenshots and my machine's DXDiag...
Read more >
How to Install Pip on Windows - ActiveState
7.9 or Python 3 >= v3.4) come prepackaged with pip by default. Pip is also included in the virtual environments created by virtualenv...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found