Jupyter Notebook is unable to find module in virtual environment
import statement shows module not found error
If you follow different article to enable virtual environment in Jupter Notebook, you will find the following command to install it after activating virtual environment -
Now run Jupyter Notebook (jupter notebook) and select the virtual environment of the notebook (.ipynb file) -
You can see the environment is listed and you selected the right environment, but you run the following code and it shows module tensorflow is not found and you can verify that using pip list -
So what we do now. I was thinking and found that it is referencing the python base installation done via pyenv which uses symlink and understood may be the reason of the issue.
I have found the following article to install and activate virtual environment using pyenv -