2

if I type in a file:

import numpy

pyright will return me an error: Import "numpy" could not be resolved

i've seen This Question

but i did set the right python version (3.10) where i have numpy installed (i only have python3.10 installed)

runing the program works fine

(im using nvim with lsp, yet runing pyright from the cmd work the same way) im on windows11

Haksell
  • 116
  • 4
  • try to add the environment of site packages in windows path. Type 'C:\Users{Username}\AppData\Local\Programs\Python{Python Version}\Lib\site-packages'. This might work for you. – Berlin Benilo Jul 17 '22 at 11:57
  • @BerlinBenilo - i append windows path with my site-packages directory; yet it still showing me the same error – Haksell Jul 17 '22 at 12:09

0 Answers0