Tensorflow install fails with “compiletime version 3.5 of module does not match runtime version 3.6”

后端 未结 8 1960
北海茫月
北海茫月 2021-02-04 01:51

I tried installing from pip:

pip3 install --user --no-cache https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.4.0-cp36-cp36m-linux_x86_64.whl


        
相关标签:
8条回答
  • 2021-02-04 02:20

    For now you can use python version less than 3.6.x because now Tensorflow 1.4.0 is not working properly with python 3.6.x. It will surly work.

    0 讨论(0)
  • 2021-02-04 02:20

    i use tensorflow 1.4.0, meet the same problem. but you can use tensorflow 1.6.0, now.

    0 讨论(0)
  • 2021-02-04 02:30

    This issue was resolved on ubuntu 17.10 by running

    $ conda install tensorflow

    0 讨论(0)
  • 2021-02-04 02:31

    Just install 1.3 version of tensorflow. Problem solved.

    pip install tensorflow==1.3.0
    
    0 讨论(0)
  • 2021-02-04 02:31

    solution 1. the way I solved this is by downgrading to the latest python3.5, go to python.org download the latest Python3.5, install it and then use normalpip3 install tensorflow this should be able to fix the issue if not try the second solution.

    solution 2(also you need to downgrade from python3.6 to python3.5 I used Pycharm to solve the issue, I created a project inside the pycharm editor then I changed the Project Interpreter from python3.6 to python3.5, to do this as well go to File > Preferences search for Project Interpreter, and from the drop-down menu change from python3.6 to python3.5 hit Apply wait for the operation to finish

    and then in the same window using the + icon

    A window will appear that will let you search and install python libraries easily without using pip, in our case we want tensorflow, so just search tensorflow, select tensorflow on search result and click Install Package this will install the package

    and voila you're ready to roll, now you got tensorflow installed on your python3.5, keep that in mind.

    0 讨论(0)
  • 2021-02-04 02:37

    I got the same issue and I was able to solve it by installing 1.3 version rather than using 1.4 of tensorflow. Use the following command to do so.

     pip3 install tensorflow==1.3.0
    
    0 讨论(0)
提交回复
热议问题