我用pip3 install tensorflow
安装了tensorflow,然后打开了python
和import tensorflow
终端,
但是,当我按下Enter
时,出现一个错误:Invalid machine command (memory dump written)
我已经多次重新安装了tensorflow,但无法正常工作。有人可以帮我吗?谢谢:D
答案 0 :(得分:2)
不确定是什么引起了您的问题,但是如果您在线搜索相同的问题和可能的解决方案,则可以访问https://github.com/tensorflow/tensorflow/issues/17411。
基本上,解决方案是安装早期的tensorflow版本。
尝试:
pip uninstall tensorflow
pip install tensorflow==1.5
答案 1 :(得分:0)
conda create -n tensorflow python=3.6
创建一个virtualenv source activate tensorflow
(tensorflow)name@name$
中,键入conda install tensorflow
python3
和import tensorflow
exit
要重新激活它,请输入source activate tensorflow