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.
The pip wheel contains the python version in its name (cp34-cp34m). If you download the whl file and rename it to say py3-none or instead, it should work. Can you try that?
The installation won't work for anaconda users that choose python 3 support because the installation procedure is asking to create a python 3.5 environment and the file is currently called cp34-cp34m. So renaming it would do the job for now.
This will produced the exact error message you got above. However, when you will downloaded the file yourself and rename it to "tensorflow-0.7.0-py3-none-linux_x86_64.whl", then execute the command again with changed filename, it should work fine.
I too got the same problem
I downloaded
get-pip.py
from https://bootstrap.pypa.io/get-pip.pyand then ran
python2.7 get-pip.py
for installingpip2.7
and then ran the
pip install
command withpython2.7
as followsFor Ubuntu/Linux:
For Mac OS X:
this should work just fine as it did for me :)
I followed these instructions from here
Make sure that the wheel is, well, supported by your platform. Pip uses the wheel's filename to determine compatibility. The format is:
I didn't realize that
x86_64
refers to x64, I thought it meant either x86 or x64, so I banged my head against this futilely for some time. Tensorflow is not available for 32 bit systems, unless you want to compile it yourself.I was trying to install from source, and got that error. (Why would a wheel built on this machine not be compatible with it-?)
For me, the tag --ignore-installed made all the difference.
worked, while
threw the abovementioned error.
Context: Conda environment; might have been a problem specific to this
actually, you can use Python 3.5., I successfully solved this problem with Python 3.5.3. Modify python version to 3.5. in conda, see https://conda.io/docs/py2or3.html. then go to https://www.tensorflow.org/install/install_windows, and repeat from "Create a conda environment named tensorflow by invoking the following command" BLA BLA.....
I faced the same issue and tried all the solutions that folks suggested here and other links (like https://askubuntu.com/questions/695981/platform-not-supported-for-tensorflow-on-ubuntu-14-04-2).
It was so frustrating because using
print(wheel.pep425tags.get_supported())
I could see that my ubuntu supported ('cp37', 'cp37m', 'linux_x86_64') and that was exactly what I was trying to install (from https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.14.0-cp37-cp37m-linux_x86_64.whl).What at the end fixed it was to simply download the package first and then