tensorflowをインストールし、importがエラーを報告します.
ちょうどtensorflowを学ぶつもりで、昨日2.0の大きいバージョンの更新を発表したばかりで、とても楽しかったですが.
インストールに成功しました.バージョンは1.13.1で、更新されたばかりの2.0ではなく、importが間違っています.
私のシステムはwin 10-x 64で、cpuはPentium E 5700はcpuあるいはオペレーティングシステムがこの版tensorflowを支持しないかもしれませんか?リロードをアンインストールし、バージョン2.0.0 a 0を指定したが、結果は同じエラーだった.python 3にバージョンを下げる.6+tensorflow1.10.0、まだエラーが発生しています.
最後にAnacondaでインストールしてみます.
インストールは成功しましたが、インストールされたバージョンはcondaが自動的に一致しました:python-3.6.2+tensorflow-1.2.1.(本当にcpuかシステムの互換性の問題かもしれません?)Anaconda公式サイトでダウンロードしてインストールし、以下のコマンドを実行すればよい.
次回直接>pythonが入ると、importは依然としてエラーを報告します.だからtensorflowに入るにはコマンドを再実行する必要があります
> pip install tensorflow
Successfully installed absl-py-0.7.0 astor-0.7.1 gast-0.2.2 grpcio-1.19.0 h5py-2.9.0 keras-applications-1.0.7 keras-preprocessing-1.0.9 markdown-3.0.1 mock-2.0.0 pbr-5.1.3 protobuf-3.7.0 tensorboard-1.13.1 tensorflow-1.13.1 tensorflow-estimator-1.13.0 termcolor-1.1.0 werkzeug-0.14.1 wheel-0.33.1
インストールに成功しました.バージョンは1.13.1で、更新されたばかりの2.0ではなく、importが間違っています.
import tensorflow as tf
Traceback (most recent call last):
File "C:\Program Files\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Program Files\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Program Files\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Program Files\Python37\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Program Files\Python37\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: (DLL) 。
私のシステムはwin 10-x 64で、cpuはPentium E 5700はcpuあるいはオペレーティングシステムがこの版tensorflowを支持しないかもしれませんか?リロードをアンインストールし、バージョン2.0.0 a 0を指定したが、結果は同じエラーだった.python 3にバージョンを下げる.6+tensorflow1.10.0、まだエラーが発生しています.
最後にAnacondaでインストールしてみます.
インストールは成功しましたが、インストールされたバージョンはcondaが自動的に一致しました:python-3.6.2+tensorflow-1.2.1.(本当にcpuかシステムの互換性の問題かもしれません?)Anaconda公式サイトでダウンロードしてインストールし、以下のコマンドを実行すればよい.
> conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
> conda config --set show_channel_urls yes
> conda create -n tensorflow python=3.7.1
> activate tensorflow
> conda install tensorflow
次回直接>pythonが入ると、importは依然としてエラーを報告します.だからtensorflowに入るにはコマンドを再実行する必要があります
> activate tensorflow
> python