Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tensorflow installation error: not a supported wheel on this platform

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.

I am using OS X v10.10.5 (Yosemite) and Python 3.4.3, but I also have Python 2.7 (I am unsure if pip differentiates between these or how to switch between them).

like image 920
Peter Qiu Avatar asked Nov 10 '15 03:11

Peter Qiu


People also ask

Does Python 3.7 supports TensorFlow?

TensorFlow is tested and supported on the following 64-bit systems: Python 3.7–3.10.


2 Answers

I too got the same problem.

I downloaded get-pip.py from https://bootstrap.pypa.io/get-pip.py and then ran python2.7 get-pip.py for installing pip2.7.

And then ran the pip install command with python2.7 as follows.

For Ubuntu/Linux:

python2.7 -m pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl 

For Mac OS X:

python2.7 -m pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl 

This should work just fine as it did for me :)

I followed these instructions from here.

like image 96
Sasidhar Boddeti Avatar answered Sep 20 '22 11:09

Sasidhar Boddeti


After activating the virtualenv, be sure to upgrade pip to the latest version.

(your_virtual_env)$  pip install --upgrade pip 

And now you'll be able to install TensorFlow correctly (for Linux):

(your_virtual_env)$  pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.0-py2-none-linux_x86_64.whl 
like image 27
learn2day Avatar answered Sep 21 '22 11:09

learn2day