No module named tensorflow in jupyter

后端 未结 13 1248
梦如初夏
梦如初夏 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:49

    This is what I did to fix this issue -

    I installed tensorflow for windows by using below link -

    https://www.tensorflow.org/install/install_windows

    Once done - I activated tensorflow by using below command -

    C:> activate tensorflow (tensorflow)C:> # Your prompt should change

    Once done I ran below command -

    (tensorflow)C:> conda install notebook

    Fetching package metadata ........... Solving package specifications: .

    Package plan for installation in environment

    The following NEW packages will be INSTALLED:

    bleach:              1.5.0-py35_0
    colorama:            0.3.9-py35_0
    decorator:           4.1.2-py35_0
    entrypoints:         0.2.3-py35_0
    html5lib:            0.9999999-py35_0
    ipykernel:           4.6.1-py35_0
     ----
     ---
    

    jupyter_client 100% |###############################| Time: 0:00:00 6.77 MB/s nbformat-4.4.0 100% |###############################| Time: 0:00:00 8.10 MB/s ipykernel-4.6. 100% |###############################| Time: 0:00:00 9.54 MB/s nbconvert-5.2. 100% |###############################| Time: 0:00:00 9.59 MB/s notebook-5.0.0 100% |###############################| Time: 0:00:00 8.24 MB/s

    Once done I ran command

    (tensorflow)C:>jupyter notebook

    It opened new Juypter window and able to Run fine -

    import tensorflow as tf

提交回复
热议问题