I am currently working in VSCode and attempting to import various libraries into my file. I am currently using the interpreter image of interpreter. The remainder of my code is shown remainder of code. I do not understand why my numpy is unable to be imported.
Question posted in Visual Studio Code
View the official documentation.
View the official documentation.
2
Answers
Do Ctrl + Shift + P, then in the pop-up type select python interpreter and choose the same python version where you installed numpy package.
Use the following code to print the current interpreter environment,
Copy the interpreter path and install numpy with
Modify
C:WorkSpacepytest10.venvScriptspython.exe
to the path you get