简体   繁体   中英

Pip Install Tensorflow Failed

I am trying to install tensorflow in python using pip command as pip install tensorflow , but unfortunately, I received the following error: Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow I have also tried to install tensorflow using the following command pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl , but was again faced with the following error: tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform . Additionally, I have checked the same commands against Python Version 3.5x 3.6x and obviously 3.7 as well, but those didn't work.

I think Tensorflow does not currently have support for Python 3.7 and if you have Python 3.7 currently installed this might be the cause of the error message Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow

You can downgrade to Python 3.6.x and install tensorflow using pip then.

Are you sure that you are capitalizing/spelling properly? The command prompt is case-sensitive. The input I use is: cd C:\\path\\to\\the\\directory\\python\\is\\installed\\in (cd, space, the path to the directory) then: python -m pip install TensorFlow It should work afterwards.

I had the same issue on windows 10, I find out that tensorflow work with python x64 installation and the command I used is the follow:

pip install --upgrade tf

Tensorflow works with 64bit as of now.

if you are wondering from where can u get that : https://www.python.org/downloads/windows/

select x84-64 version (64 bit)

Type on command line(If you are using GPU version)

pip install -U --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.0.0-cp35-cp35m-win_amd64.whl

or If you are using CPU only

pip install -U --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_amd64.whl

相信如果大家都用了这个命令,问题总算解决了。

python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl

Go through the pip install guide . It describes the process and also highlights the workarounds to take for various python versions and different Operating Systems.

I had a mac with an M1 chip and the installation instructions were slightly different. I had to use anaconda to install TensorFlow. Ensure you have python version 3.7+ with a 64-bit architecture.

Download and install Conda env .

chmod +x ~/Downloads/Miniforge3-MacOSX-arm64.sh
sh ~/Downloads/Miniforge3-MacOSX-arm64.sh
source ~/miniforge3/bin/activate

Install the TensorFlow dependencies:

conda install -c apple tensorflow-deps==2.6.0

Install base TensorFlow:

python -m pip install tensorflow-macos

Install tensorflow-metal plugin

python -m pip install tensorflow-metal

I've got the same issue using MacOs M1 Ventura 13.1 this fixes the problem:

python3 -m pip install tensorflow-macos

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM