Skip to content Skip to sidebar Skip to footer

Pip3 Showing Different Version Of Tensorflow Library

When I do this python3 -c 'import tensorflow as tf; print(tf.__version__)' I get 1.3.0 When I do this pip3 show tensorflow I get 1.8.0 Why do I get different version of tensorfl

Solution 1:

I'm not sure but I think you might have more than one python distributions in your system and your pip3 associated python doesn't match your python3.

  1. To check your "two" (potential) tensorflows:

    python3 -c 'import tensorflow as tf; print(tf.__file__)'
    

    and

    pip3 show tensorflow # And look for "Location: ..."
  2. To check your pip3 and python3 associcated site-packages:

    python3 -m site
    
    #Or
    
    python3 -c "import site; print(site.getsitepackages())"

    and

    pip --version

Post a Comment for "Pip3 Showing Different Version Of Tensorflow Library"