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 this error:
pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
tensorflow-0.5.0-py2-none-any.whl is not a supported wheel on this platform.
I don't see this under the common problems section, so any help would be appreciated! Thank you.
I was trying to install CPU TF on Ubuntu 18.04, and the best way (for me...) I found for it was using it on top of Conda, for that:
expected result:
So you should use:
After activating the virtualenv, be sure to upgrade pip to the latest version.
And now you'll be able to install tensor-flow correctly (for linux):
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
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
Then run below command to install tensorflow CPU version(recommended)
Seems that tensorflow only work on python 3.5 at the moment, try to run this command before running the pip install
After this running the following lines :
For cpu :
For gpu :
Should work like a charm,
Cheers
I was trying to do the windows-based install and kept getting this error.
Turns out you have to have python 3.5.2. Not 2.7, not 3.6.x-- nothing other than 3.5.2.
After installing python 3.5.2 the
pip install
worked.This may mean that you are installing the wrong pre-build binary
since my CPU on Ubuntu 18.04 my download url was: https://github.com/lakshayg/tensorflow-build/releases/download/tf1.12.0-ubuntu18.04-py2-py3/tensorflow-1.12.0-cp36-cp36m-linux_x86_64.whl
as it can be found on this github page: https://github.com/lakshayg/tensorflow-build
resolved the issue for me.