Reputation: 5843
I tried installing tensorflow on my system, but I received the following error:
tensorflow-0.5.0-cp27-none-linux_x86_64.whl is not a supported wheel on this platform
Exception Information captured in pip.log file:-
/home/gansai/tensorflow/bin/pip run on Wed Nov 11 00:19:05 2015
tensorflow-0.5.0-cp27-none-linux_x86_64.whl is not a supported wheel on this platform.
Exception information: Traceback (most recent call last):
File "/home/gansai/tensorflow/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main status = self.run(options, args)
File "/home/gansai/tensorflow/local/lib/python2.7/site-packages/pip/commands/install.py", line 269, in run InstallRequirement.from_line(name, None))
File "/home/gansai/tensorflow/local/lib/python2.7/site-packages/pip/req.py", line 168, in from_line raise UnsupportedWheel("%s is not a supported wheel on this platform." % wheel.filename)
UnsupportedWheel: tensorflow-0.5.0-cp27-none-linux_x86_64.whl is not a supported wheel on this platform.
What could I do to install tensorflow and start experimenting it?
Upvotes: 10
Views: 20046
Reputation: 8596
It might be unrelated but I had the same error with tensorflow-0.7.1-cp34-none-linux_x86_64.whl on a fresh Ubuntu Linux 14.04 LTS (64bit) and this is what has helped:
sudo apt-get install python3-setuptools -y && sudo easy_install3 pip -y && sudo apt-get install python 3.5-dev -y && sudo apt-get install python3.4-dev -y
sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp34-none-linux_x86_64.whl
You can call a tensorflow script like this:
#call it with python3.4
python3.4 tensorflow_demo.py
While researching I often read about using wget and renaming the file but this became obsolete with the latest version, see here: https://github.com/tensorflow/tensorflow/issues/1142#issuecomment-186740120
Upvotes: 1
Reputation: 5843
tensorflow-0.5.0-cp27-none-linux_x86_64.whl is not a supported wheel on this platform
The above error comes because of trying to install TensorFlow onto a 32 bit system. As you could observe, the wheel was linux_x86_64, which is intended to be installed on 64 bit.
Steps to follow:-
Direct Binary Installation
apt-get install python-dev
python2.7 -m pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
Docker Based Installation
docker run -it b.gcr.io/tensorflow/tensorflow
. Follow steps mentioned in http://tensorflow.org/get_started/os_setup.md#docker-based_installationThe main point to be noted here is that, as of now, python wheel for tensorflow is supported for 64 bit system, as shared in pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
Upvotes: 7
Reputation: 1214
I guess pip3 is being used for installation
it can be solved by using pip2.7
I followed the steps in here
hope it helps you:)
Upvotes: 10