skip to Main Content

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.

enter image description here

enter image description here

4

Answers


  1. Make sure you have correctly set up the virtual environment and chosen the interpreter where numpy is installed.

    Login or Signup to reply.
  2. Please install the numpy package in VS console itself to solve this problem

    Login or Signup to reply.
  3. 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

      full/path/to/python3.10.11/python.exe -m pip install numpy
      
    • Use python38 in vscode

      Ctrl+Shift+P –> Python: Select Interpreter –> python38

    Login or Signup to reply.
  4. Try to follow this: blog.devgenius.io

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search