1. 程式人生 > >TensorFlow tf.estimator package not installed

TensorFlow tf.estimator package not installed

    在使用 pip install tensorflow 命令安裝TensorFlow,在成功安裝後,在 import tensorflow是出現 "tf.estimator package not installed" 解決方法如下:
    1、確保 pandas, numpy, matplotlib 這些依賴包已經被正確安裝
    2、使用 pip install -U xxx --no-cache-dir  (不使用快取檔案,重新網上下載安裝)
    3、如果更新相關依賴包後還沒解決話的,就需要將 pandas, numpy, matplotlib這三個依賴包一個一個import,檢視是否報錯(PS:我覺得肯定是哪個包出現了問題,才會導致 “tf.estimator package not installed”)

以下是我在 import pandas 出現的錯誤,導致"tf.estimator package not installed":

TensorFlow tf.estimator package not installed
經過Google後,使用命令"conda remove bottleneck","conda install bottleneck",解決錯誤後就正常 import tensorflow 了。也可以參考 Github上的issues