ModuleNotFoundError #17406
-
Hi, I've got an Anaconda environment set up with all of my dependencies installed but try to run an Azure Function and attach to it but get errors that the modules are not found like this: When I run I can see In VS Code I have a
Any thoughts or things I should try? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm not sure how the Azure Functions extension loads things up, but I would double-check that you can import the module in question from the exact same interpreter as it's being executed (if it isn't being done clearly in a terminal I would check the Output panel to see if there's something there). Otherwise if this is being run in a terminal then do make sure that the conda environment successfully activated. Best way for that is to launch VS Code from the environment already activated. |
Beta Was this translation helpful? Give feedback.
Switching to
venv
did the trick. No longer usingconda
.https://docs.python.org/3/tutorial/venv.html