日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

window10 python 3.6 安装tensorflow的坑

發布時間:2023/12/31 python 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 window10 python 3.6 安装tensorflow的坑 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

安裝過程中選擇 whl 安裝
其中錯誤

Traceback (most recent call last):File "<stdin>", line 1, in <module>File "E:\Python3.6\lib\site-packages\tensorflow\__init__.py", line 24, in <module>from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-importFile "E:\Python3.6\lib\site-packages\tensorflow\python\__init__.py", line 52, in <module>from tensorflow.core.framework.graph_pb2 import *File "E:\Python3.6\lib\site-packages\tensorflow\core\framework\graph_pb2.py", line 6, in <module>from google.protobuf import descriptor as _descriptorFile "E:\Python3.6\lib\site-packages\google\protobuf\descriptor.py", line 47, in <module>from google.protobuf.pyext import _message ImportError: DLL load failed: 找不到指定的程序。

解決方式 :
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的坑的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。