upgrading to gpu in tensorflow with anaconda gives error message - python

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

Related

As i was going with the installation of tenserflow and once i was upgrading it in the cmd, i got a error as below

ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
tensorflow from https://files.pythonhosted.org/packages/42/71/b5fc9db0e52e86b7ea51cf929bc93b39a7ca49ad2ece053d2a2b1568cddd/tensorflow-2.8.0-cp310-cp310-win_amd64.whl#sha256=b7170844ae6b048d82a9d7a61b2fa627f2e16cb829267bf0ce4b3a0de0a61054:
Expected sha256 b7170844ae6b048d82a9d7a61b2fa627f2e16cb829267bf0ce4b3a0de0a61054
Got c907668200f258e76d81c26c182f1290f3129da32d1548e75175ae8ab552d6fc
Upgrade Tensorflow.
pip3 install --upgrade pip
pip3 install --upgrade tensorflow
Install latest Tensorflow
pip3 install tensorflow

Resolving error while installing devstack train on ubuntu

I am trying to install devstack train on ubuntu and get the following error:
ContextualVersionConflict: (glance-store 0.28.1
(/usr/local/lib/python2.7/dist-packages),
Requirement.parse('glance-store>=1.0.0'), set(['glance'])) You are
using pip version 9.0.3, however version 21.2.4 is available. You
should consider upgrading via the 'pip install --upgrade pip' command.
I did try upgrading pip using:
sudo apt-get install python-pip
sudo pip install --upgrade pip
But when I ran ./stack.sh again, I face the same issue.
Can you please let me know how can I resolve this issue?
I think the really true error reason is: Requirement.parse('glance-store>=1.0.0'),
Try this:
sudo pip install glance-store==1.0.0
the version 1.0.0 should replace by what you need.

Pip version error when Installing TensorFlow

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

pip install tensorflow throw error when it try to install related packeg:futures

Environment: python 3.6.2
When I try to install tensorflow-gpu with this command:
pip3 install --upgrade tensorflow-gpu
It throws an error message when it tries to install related packeg:futures
Unknown requires Python '>=2.6, <3' but the running Python is 3.6.2.
But futures is python2 only package.
How can I handle it?
I find the issue in github :
https://github.com/tensorflow/tensorflow/issues/16478
it should install futures first:
pip3 install futures==3.1.1
You can download the source from pypi futures-3.2.0.tar.gz and install.

install Tensorflow 1.0 on windows by Anaconda error

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.

Categories

Resources