3
Activating extension 'ms-python.python' failed: command 'python.viewOutput' already exists.
workbench.desktop.main.js:2350 Cannot activate the 'Pylance' extension because its dependency 'Python' failed to activate

I tried to edit a python file with vscode and it shows extension activation failed

3 Answers 3

8

Try disabling all other python extensions in VSCode. I had the same issue because a different Python VS extension was conflicting with the official extension. Here's a link that might be able to help you in more detail.

It's hard to give you a more specific answer for this type of question without knowing more about your setup.

EDIT: Look at the comment thread on this answer if you need more details

Sign up to request clarification or add additional context in comments.

14 Comments

what do you mean "setup" ?
(ie. Whether you have other extensions installed, version of python, whether your ~/.vscode/extensions/ is all configured properly, what your source map looks like, etc) But definitely try just reinstalling, it's often just an issue with a bad file.
i tried reinstalling several times im having this issue for 1 month
i tried all the things i can but still same error
Do you have any other python extensions installed?
|
2

You should go through standard troubleshooting procedures like uninstalling and reinstalling ms-python.python. Check if you have multiple python extensions installed and that you only have one installed. This might give you a bit more detail.

Comments

1

I had this error on remote.

In addition to the jupyter extension, I also installed the pylance extension (on remote); that worked. Nothing else did.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.