I have anaconda base environment and 1 other environment where i have tensorflow installed which i am trying to import in my jupyter notebook after changing the kernel.
i installed jupyter notebook in my conda base environment using the following command:
conda install -c conda-forge jupyterhub
and by simply doing:
pip install jupyter
after that i added my new environment with tensorflow and some other additional packages with this command:
python -m ipykernel install --user --name env_cod --display-name "Python (env_cod)"
So now i launch jupyter notebook by simple (jupyter-notebook) in the desired directory and i also tried launching jupyter-notebook after activating the env_cod environment from terminal. But still i am not able to import tensorflow in my jupyter notebook after changing the kernal by selecting from the kernel tab also when i create new jupyter notebook by selecting env_cod environment i am not able to import tensorflow and get this error :
no module named tensorflow
I already tried uninstalling and installing jupyter in my both base and env_cod environment.
Also there is nothing wrong with my env_cod environment and tensorflow is working perfectly fine along with other packages when i run my scripts through PyCharm after selecting env_cod environment. The Problem is Only with Jupyter Notebook.