No module named tensorflow in jupyter

后端 未结 13 1244
梦如初夏
梦如初夏 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条回答
  •  北海茫月
    2020-12-04 18:51

    There are two ways to fix this issue.

    1. The foremost way is to create a new virtual environment and install all dependencies like jupyter notebook, tensorflow etc.

    conda install jupyter notebook

    conda install -c conda-forge tensorflow

    1. The other way around is to install tensorflow in the current environment (base or any activated environment).

    conda install -c conda-forge tensorflow

    Note: It is advisable to create a new virtual environment for every new project. The details how to create and manage virtual environment using conda can be find here:

    https://conda.io/docs/user-guide/tasks/manage-environments.html

提交回复
热议问题