安装tensorflow后,Jupyter笔记本无法正常工作

时间:2017-12-10 18:33:49

标签: python tensorflow anaconda jupyter-notebook jupyter

我为Anaconda安装了tensorflow用于新环境。但经过成功安装后,jupyter笔记本电脑无法正常工作。

我按以下方式安装:

conda create -n tensorflow python=3.5
activate tensorflow
conda install pandas matplotlib jupyter notebook scipy scikit-learn
pip install tensorflow

但是当我尝试启动juypyter笔记本时出现以下错误:

Unable to create process using ‘C:\Users\User\Anaconda3\envs\tensorflow\python.exe C:\Users\User\Anaconda3\envs\tensorflow\Scripts\jupyter-script.py notebook’

我尝试通过pip卸载,但是pip也不起作用:

(C:\Users\User\Anaconda3\envs\tensorflow) C:\Users\User>pip uninstall jupyter
Unable to create process using 'C:\Users\User\Anaconda3\envs\tensorflow\python.exe C:\Users\User\Anaconda3\envs\tensorflow\Scripts\pip-script.py uninstall jupyter'

如果我运行conda信息,我会得到以下信息:

(tensorflow) C:\Users\User> conda info
Current conda install:

           platform : win-64
      conda version : 4.3.30
   conda is private : False
  conda-env version : 4.3.30
conda-build version : 3.0.27
     python version : 3.6.3.final.0
   requests version : 2.18.4
   root environment : C:\Users\User\Anaconda3  (writable)
default environment : C:\Users\User\Anaconda3\envs\tensorflow
   envs directories : C:\Users\User\Anaconda3\envs
                      C:\Users\User\AppData\Local\conda\conda\envs
                      C:\Users\User\.conda\envs
      package cache : C:\Users\User\Anaconda3\pkgs
                      C:\Users\User\AppData\Local\conda\conda\pkgs
       channel URLs : https://repo.continuum.io/pkgs/main/win-64
                      https://repo.continuum.io/pkgs/main/noarch
                      https://repo.continuum.io/pkgs/free/win-64
                      https://repo.continuum.io/pkgs/free/noarch
                      https://repo.continuum.io/pkgs/r/win-64
                      https://repo.continuum.io/pkgs/r/noarch
                      https://repo.continuum.io/pkgs/pro/win-64
                      https://repo.continuum.io/pkgs/pro/noarch
                      https://repo.continuum.io/pkgs/msys2/win-64
                      https://repo.continuum.io/pkgs/msys2/noarch
        config file : C:\Users\User\.condarc
         netrc file : None
       offline mode : False
         user-agent : conda/4.3.30 requests/2.18.4 CPython/3.6.3 Windows/10 Windows/10.0.16299
      administrator : False

我做错了什么,我该如何解决? 提前谢谢!

0 个答案:

没有答案