win10 Anaconda3 安裝tensorflow CPU

1.轉載了博友:

Windows10下用Anaconda3安裝TensorFlow教程

現在python3.6 已經支持tensorflow  故跟着上面的博主走,就可以安裝好啦,不用看下面我踩了的坑。

2.安裝過程出現了錯誤提示:

 

notebook 5.4.0 requires ipykernel, which isnot installed.

jupyter 1.0.0 requires ipykernel, which isnot installed.

jupyter-console 5.2.0 requires ipykernel,which is not installed.

ipywidgets 7.1.1 requiresipykernel>=4.5.1, which is not installed.

3.解決方法參考了:

用Anconada 安裝 TensorFlow 1.7 的幾個異常解決辦法:EnvironmentError: [Errno 13] ;anEnvironmentError: [WinError 5]

安裝:pip install notebook  出現紅色提示:

tensorboard 1.8.0 has requirement bleach==1.5.0, but you'll have bleach 2.1.2 which is incompatible.

tensorboard 1.8.0 has requirement html5lib==0.9999999, but you'll have html5lib 1.0.1 which is incompatible.

解決方法參考了:博友https://blog.csdn.net/u010327061/article/details/80150106

 

  1. pip install tensorflow-tensorboard  

4. 結束之後驗證是否安裝成功是,還是出錯。查了百度之後。

>>> import tensorflow as tf
G:\Anaconda3\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
>>>

知道原因是:

tensorflow只支持python3.5版本的,不支持3.6的,而我安裝了最新的版本3.6

解決方法參考了:

win10下anaconda安裝tensorflow找不到包:Could not find a version that satisfies the requirement tensorflow (from versions: )

和  怎麼配置3.5環境,參考了:

windows下配置安裝Anaconda+tensorflow

cmd:conda create --name python35 python=3.5

然後激活py35: conda activate python35

之後就可以開始在py35下安裝啦:

cpu版本:pip install --ignore-installed --upgrade tensorflow

圖示:

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章