By following the instructions on Tensorflow website, I tried to install cpu-only version Tensorflow by Anaconda. However, the 4th step
(tensorflow)C:> pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_x86_64.whl
outputs an error:
tensorflow-1.0.0-cp35-cp35m-win_x86_64.whl is not a supported wheel on this platform. Could anyone tell me the reason behind this?
The command on the website is currently wrong. Replace x86_64 at the end of the URL with amd64 to get the correct command:
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_amd64.whl
Alternatively you can use the following simpler command to install the latest CPU version:
pip install --ignore-installed --upgrade tensorflow
I think your problems could be one of this:
your python version is not Python3.5
Your system is not x64 windows.
So you can change install method below.
You can install tensorflow with pip direct like this:
pip install tensorflow
but this works only pip version > 9,
if you're using pip version under 9, you have to upgrade pip first.
you can upgrade your pip with this:
pip install -U pip
if you've installed python for all user, you might run this code with administrator account.
Related
This is my cmd with the error.
C:\Users>pip install tensorflow
ERROR: Could not find a version that satisfies the requirement
tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
what should I do?
You have a 32-bit build of Python. Three is no 32-bit build of tensorflow, so it is not available. Install the 64 bit build of Python and use that. Then tensorflow will install.
Try this
python -m pip install --upgrade pip
python -m pip install tensorflow
Firstly, install the x64 version of Python from https://www.python.org/downloads/ followed by upgrading your pip version.
You can issue the command: python -m pip install --upgrade pip to upgrade your pip version (If not already in the latest version). At the time of writing this comment, the latest version of pip is 21.2.4.
Next install TensorFlow by issuing the command: python -m pip install tensorflow.
If the error still persists, then uninstall TensorFlow using command: python -m pip uninstall tensorflow.
Clear the temp files on the PC. Press CTRL+R and type "temp", delete all the files. Then Press CTRL+R and type "%temp%", deleting all the files.
Finally restart your PC/Laptop.
Install Tensorflow using the command: python -m pip install tensorflow.
Now, Tensorflow should be installed successfully.
Running into the below error when I try to install Tensorflow from command line ,
Running command
pip install tensorflow
Post this when I run the pip update command
python -m pip install --upgrade pip
this says that Pip is already updated version
So tensorflow requires me to get latest version of pip but when I go and try to update pip , it seems the latest version is already there.
Python version is - Python 3.7.0
To install Tensorflow with pip, it's version should be 19.0 or later as per system requirements
Since you are using lower version of pip, hence received the upgrade recommendation.
Ideal way of Tensorflow installation through pip as below
# Requires the latest pip
pip install --upgrade pip
# Current stable release for CPU and GPU
pip install tensorflow
For more details please refer
I am trying to install the "sparse_dot_topn" package in Alibaba Cloud ECS instance. Firstly I tried to install it through the Anaconda installer.
conda install sparse_dot_topn
It throws like there is no package available
So I tried to install via pip
Pip install spare_dot_topn
But it throws me the following error
What am I missing? Please leave your suggestions
sparse_dot_topn requires Cython, try installing it this way:
pip install cython
pip install git+https://github.com/ing-bank/sparse_dot_topn.git
I have tried it first with pip install and failed. Then I tried within Anaconda terminal with the following comment and it was succesfull.
conda install -c conda-forge sparse_dot_topn
I'm trying to upgrade to Tensorflow 1.9 within a conda environment (Ubuntu 16.04). I am using python 3.6.5. When I try this:
source activate myenv
sudo -H pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.9.0rc0-cp36-cp36m-linux_x86_64.whl
I get the error:
tensorflow-1.9.0rc0-cp36-cp36m-linux_x86_64.whl is not a supported wheel on this platform.
Seems strange because the same thing worked fine for TF 1.8
TensorFlow seems to install fine without sudo -H but then when I try:
python -c "import tensorflow as tf; print(tf.__version__)"
I get the following error:
from tensorflow.python.keras._impl.keras.backend import abs
ImportError: cannot import name 'abs'
I can't install from conda because it still has 1.8 when I check with:
conda install -c conda-forge tensorflow
With sudo you're installing locally. So, remove sudo -H to install over your Environment.
also, you need the python developer library locally:
Ubuntu: apt-get install python3-dev
RHEL/Fedora: dnf install python3-devel
Mac OS: check your environment variables or try re-installing?
Windows: check your environment variables or try re-installing?
Sometimes because of outdated pip also this can happen . Try this inside that environment and let me know
python -m pip install --upgrade pip
Try to check if conda has 1.9
conda install -c conda-forge tensorflow
I figured out that this Tensorflow is a pre-release not the complete release, as a result you can upgrade it using pip directly.
You can remove your installed release and try to install this else wait for couple of weeks after that you can directly update via conda forge or pip.
I used the technique described in the answer to How to install Tensorflow on Windows 10 with anaconda? That worked for me. I then tried to run an upgrade to GPU with the following msg
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.0.0-cp35-cp35m-win_x86_64.whl
tensorflow_gpu-1.0.0-cp35-cp35m-win_x86_64.whl is not a supported wheel on this platform.
There seems to be an error in the Windows installation instructions, which refers to a non-existent URL. You can enter one of the following commands instead:
pip install --ignore-installed --upgrade tensorflow-gpu
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.0.0-cp35-cp35m-win_amd64.whl