Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

ModuleNotFoundError for all my python pip imports on Terminal only

$
0
0

All my pip installed modules work fine using vscode, e.g. numpy, opencv-python, requests but when I run a program using terminal with windows powershell, I get ModuleNotFoundError for all my imports.

running python on terminal works but importing any of my pip installed modules get ModuleNotFoundError

running pip list on terminalworks and shows all my modules

I tried using python -m program.py but that gives "...\AppData\Local\Programs\Python\Python312\python.exe: Relative module names not supported"

I checked that my python path variables were correct


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>