CPU硬件不兼容导致ModuleNotFoundError: No module named 'tensorflow.python._pywrap_tensorflow_internal'

在安装tensorflow的时候, 出现下面的错误. 

1. 安装windows redistribute

2. 安装windows补丁

都不好使. 最后发现自己的CPU是Pentium的E5800. 这款CPU因为不支持AVX(高级向量扩展), 所以tensorflow不支持. 真是坑爹啊. 

AVX说明: https://en.wikipedia.org/wiki/Advanced_Vector_Extensions

得到结论: tensorflow的硬件要求: 64位系统 + AVX支持. 

Traceback (most recent call last):
  File "site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18,
 in swig_import_helper
  File "importlib\__init__.py", line 126, in import_module
  File "", line 994, in _gcd_import
  File "", line 971, in _find_and_load
  File "", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'tensorflow.python._pywrap_tensorflow_inter
nal'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in 

''''

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/install_sources#common_installation_probl
ems

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
[1044] Failed to execute script app
[1044] LOADER: OK.
[1044] LOADER: Cleaning up Python interpreter.
[4704] LOADER: Back to parent (RC: -1)
[4704] LOADER: Doing cleanup
[4704] LOADER: Freeing archive status for 

 

你可能感兴趣的:(python,个人工作环境)