window10 python 3.6 安装tensorflow的坑
生活随笔
收集整理的這篇文章主要介紹了
window10 python 3.6 安装tensorflow的坑
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
安裝過程中選擇 whl 安裝
其中錯誤
解決方式 :
1、降低 tensorflow 的版本 由原來的 1.3.1-> 1.12.0 -> 1.11.0
2、還是報以上錯誤
修改 protobuf 版本 pip3 install protobuf=3.6.0 (感覺 主要由 protobuf 版本影響 上面 修改tensoflow 版本影響 待驗證)
3、然后出問題:
E:\Python3.6\lib\site-packages\tensorflow\python\framework\dtypes.py:523: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'._np_qint8 = np.dtype([("qint8", np.int8, 1)]) E:\Python3.6\lib\site-packages\tensorflow\python\framework\dtypes.py:524: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'._np_quint8 = np.dtype([("quint8", np.uint8, 1)]) E:\Python3.6\lib\site-packages\tensorflow\python\framework\dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'._np_qint16 = np.dtype([("qint16", np.int16, 1)]) E:\Python3.6\lib\site-packages\tensorflow\python\framework\dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'._np_quint16 = np.dtype([("quint16", np.uint16, 1)]) E:\Python3.6\lib\site-packages\tensorflow\python\framework\dtypes.py:527: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'._np_qint32 = np.dtype([("qint32", np.int32, 1)]) E:\Python3.6\lib\site-packages\tensorflow\python\framework\dtypes.py:532: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.np_resource = np.dtype([("resource", np.ubyte, 1)])解決方式降低 numpy 版本 (1.17.0-》 1.15.0)
問題完美解決
版本和window 配置關系
首先在NVIDIA 控制面板中查看顯卡 支持的CUDA版本,具體方法參考《Windows系統查看CUDA版本號》
注意: tesflow window 版本的下載方式為 :(一般輪子的下載地址)
https://pypi.org/project/tensorflow/1.11.0/#files
參考:https://blog.csdn.net/Halsey_/article/details/88411095
總結
以上是生活随笔為你收集整理的window10 python 3.6 安装tensorflow的坑的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 网页设计与开发
- 下一篇: KEPServerEX 6 之 lot