0

I installed a couple of python packages with pip inside a virtual environment and they installed successfully - to check this I ran pip list. However, when I try to run the program the error 'module not found' appears in the VScode terminal (I am not using the Mac's terminal, everything is inside the VScode terminal).

I am using an zsh shell inside visual studio code. I checked the version of python and it is python3. I've also been using pip3 to do the installs as I thought that would link up to python3 - I am guessing python3 comes with pip3 (I am thinking pip on its own would have also been enough?) In any case, the program, when I run it, is not finding the installed modules.

I am woeful with paths - could this be the problem? I thought by using a virtual environment I'd avoid issues with paths.

  • I just gave an answer to a similar question, this might help you out: https://stackoverflow.com/questions/75628483/modulenotfounderror-no-module-named-jose-but-its-already-installed/75628870?noredirect=1#comment133425651_75628870 – Olivier Neve Mar 03 '23 at 15:43

0 Answers0