No module named tensorflow in jupyter

后端 未结 13 1259
梦如初夏
梦如初夏 2020-12-04 18:06

I have some imports in my jupyter notebook and among them is tensorflow:

ImportError                               Traceback (most recent call last)


        
13条回答
  •  萌比男神i
    2020-12-04 18:30

    Conda environment fetches the tensorflow package from the main system site-packages.

    Step 1: Just deactivate conda environment

    conda deactivate  
    
    pip install tensorflow 
    

    Step 2: Switch back to conda environment

    conda activate YOUR_ENV_NAME
    
    jupyter notebook
    

    Step 3: Run the cell with import tensorflow you should be able to import.

    Thanks

提交回复
热议问题