Debug Python from Visual Studio Code - Numpy Import

import numpy
print "asdf"

When I try to debug / run the above Python code in Visual Studio code, I get the following error (using OSX)

ImportError, you cannot import the name float96

What is permission?

I installed python from the python site. I tried to work after installation with brew too, but without effect.

EDIT

The problem is all imports for Visual Studio

+4
source share
3 answers

Re-insatlling the python extension solved my problem. After all, this is not a configuration problem.

https://code.visualstudio.com/docs/languages/python_c

: Don Jayamanne Python - Pylint, Pep8 Flake8. . Wiki .

+1

, , , . , launch.json ( , "ImportError" ):

{ "name": "Python", "type": "python", "request": "launch", "stopOnEntry": true, "program": "${file}", "debugOptions": [ "WaitOnAbnormalExit", "WaitOnNormalExit", "RedirectOutput" ], "exceptionHandling": { "ignore": ["ImportError"] } },

+4

, vscode python (v2), python3.

launch.json pythonPath python3, .

+3

All Articles