簡體   English   中英

如何安裝最新版本的tensorflow?

[英]How can I install the latest version of tensorflow?

我想在我的機器上安裝最新版本的tensorflow(1.12.0),並使用pip install tensorflow進行pip install tensorflow 在我的linux機器上安裝的Tensorflow的1.12.0版本沒有任何錯誤,但是當我嘗試在python shell中導入tensorflow時,出現此錯誤並中止tensorflow導入。

>>> import tensorflow as tf
F tensorflow/core/platform/cpu_feature_guard.cc:37] The TensorFlow library was compiled to use AVX instructions, but these aren't available on your machine. 
Aborted

在這個答案中,據說這是一個簡單的警告,但我的不是警告,它完全中止了張量流的導入。 我嘗試多次卸載並重新安裝tensorflow,但相同的問題仍然存在。 然后,我嘗試安裝最低版本的tensorflow pip install tensorflow==1.0.0pip install tensorflow==1.0.0並能夠安裝舊版本的tensorflow。

如何安裝最新版本的tensorflow?

看來您的CPU不支持AVX指令。

由於1.6版使用AVX指令,因此TF不能在“舊” CPU上使用。

但是,有一些非官方的。 但是您可能找不到基於最新版本的tensorflow的版本。

這是一個關於它的線程: https : //github.com/tensorflow/tensorflow/issues/18689

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM