Tensorflow installation error: not a supported wheel on this platform

后端 未结 13 1132
别跟我提以往
别跟我提以往 2020-11-29 01:53

when I try to install tensorflow by cloning from git, I run into the error \"no module named copyreg,\" so I tried installing using a virtualenv. However, I then run into th

13条回答
  •  再見小時候
    2020-11-29 02:34

    On Windows 10, with Python 3.6.X version I was facing same then after checking deliberately , I noticed I had Python-32 bit installation on my 64 bit machine. Remember TensorFlow is only compatible with 64bit installation of python. Not 32 bit of Python

    If we download Python from python.org , the default installation would be 32 bit. So we have to download 64 bit installer manually to install Python 64 bit. And then add

    1. C:\Users\\AppData\Local\Programs\Python\Python36
    2. C:\Users\\AppData\Local\Programs\Python\Python36\Scripts

    Then run gpupdate /Force on command prompt. If python command doesnt work for 64 bit restart your machine.

    Then run python on command prompt. It should show 64 bit

    C:\Users\YOURNAME>python
    Python 3.6.3 (v3.6.3:2c5fed8, Oct  3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    

    Then run below command to install tensorflow CPU version(recommended)

    pip3 install --upgrade tensorflow
    

提交回复
热议问题