简体   繁体   English

我无法在 python 中导入 tensorflow

[英]i can't import tensorflow in python

I had install TensorFlow using pip and it has been installed successfully but when I am trying to import it is giving me an error "ImportError: No module named '_pywrap_tensorflow_internal" Failed to load the native TensorFlow runtime.我已经使用 pip 安装了 TensorFlow 并且它已成功安装但是当我尝试导入它时给我一个错误"ImportError: No module named '_pywrap_tensorflow_internal" Failed to load the native TensorFlow runtime.

How can I fix it?我该如何解决?

Error Screenshot here错误截图在这里

Use python version Python 3.8.8 or above:使用 python 版本 Python 3.8.8 或以上:

pip install --user virtualenv

Activate your virtual enviroment and type the command in your console激活您的虚拟环境并在控制台中键入命令

pip install tensorflow
pip3 install tensorflow

Tensorflow package is of something around 200mb or above so be patient and let it to be install Tensorflow package 大约是 200mb 或以上,所以请耐心等待安装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM