I have VScode and python 3.10.11 installed on my computer and i have installed numpy as well using the pip command in cmd. But i still cannot access numpy in vs code.
I used the pip install numpy command in cmd and the library was installed. i can run it in the python’s ide but not in VScode.
4
Answers
Make sure you have correctly set up the virtual environment and chosen the interpreter where numpy is installed.
Please install the numpy package in VS console itself to solve this problem
You install the numpy package in python38, but you use python 3.10.11 in vscode. There are two solutions:
Install numpy for python 3.10.11
Use python38 in vscode
Ctrl+Shift+P –>
Python: Select Interpreter
–> python38Try to follow this: blog.devgenius.io