I am trying to call a simple keras.Sequential() model in python 3.9 (64bit), however when trying to install tensorflow using pip I get the following error:
ERROR: Could not find a version that satisfies the requirement tensorflow
ERROR: No matching distribution found for tensorflow
Having stacked this error I followed this fix: TensorFlow not found using pip and tried to use the latest version of CPU only windows wheel using the following command:
install python -m pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.4.0-cp38-cp38-win_amd64.whl
However I then get the following error:
ERROR: tensorflow_cpu-2.4.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
The only answer on this that I can find is this:
Tensorflow installation error: not a supported wheel on this platform
However the answer relates to python2.7 and does not apply to this situation.
Is anyone able to help understand why I am finding it so difficult to install tensorflow.
Thanks.
It appears that TensorFlow only supports Python 3.5-3.8, so you are unable to install it because your version of Python is 3.9.
You will need to use a different version of Python if you want to install TensorFlow.
Related
I am currently on Linux x86-64 machine. I am trying to install opencv in my virtual environment using pip however the error I keep receiving is
ERROR: Could not find a version that satisfies the requirement numpy==1.19.3 (from versions: 1.19.2+computecanada, 1.21.0+computecanada, 1.21.2+computecanada)
ERROR: No matching distribution found for numpy==1.19.3
I am running python 3.9.6 (64bit) and my current numpy version is 1.21.3. the command I've been using is pip install opencv-python. i've also tried uninstalling other instances of openCV and have tried the other options all with the same error. Does openCV not support numpy 1.21.3? Would anyone be able to point me in the right direction?
On computecanada you don't need to install OpenCV.
You can use it by following these commands:
module spider opencv
module load opencv/version
Actually, this error happens if numpy version does not match OpenCV required version.
for my case:
I used python 3.6. so I solved this error by following:
pip install numpy==1.19.0
pip install opencv-python==3.4.11.45
after installing numpy I search which OpenCV version support this numpy version, I found 3.4.11.45 so I install it by 2 number command and it is working.
please I want to install tensorflow for R on my windows10 computer. I have run the code install_tensorflow() and use_condaenv("r-tensorflow") from the reticulate library but I get the error message below:
Error: Error installing package(s): "tensorflow==2.4"
I have also tried to install tensorflow in my command prompt using pip3 install tensorflow command, but I also get the error message below:
ERROR: Could not find a version that satisfies the requirement tensorflow
ERROR: No matching distribution found for tensorflow
Please, is there a way around it. I have also installed the latest version of anaconda and python 3.8 on my computer. I will really appreciate any help I can get
Have you tried the following?
install.packages("tensorflow")
PS Do this inside your R program of course.
System used:
MacOS Big Sur MacBook Air M1 processor -
Python 3.8.2 -
pip 20.3.3
I am trying to install Tensorflow 2 on my Mac, I have all the requirements needed, I tried
python -m pip install tensorflow but I receive these two errors:
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none) ERROR: No matching distribution
found for tensorflow
I also tried to download from https://pypi.org/project/tensorflow/2.4.0/#files the last release for mac and python 3.8 and running python -m pip install /Users/v.b./Downloads/tensorflow-2.4.0-cp38-cp38-macosx_10_11_x86_64.whl
I receive this error:
ERROR: tensorflow-2.4.0-cp38-cp38-macosx_10_11_x86_64.whl is not a
supported wheel on this platform.
I think it is something really stupid I am missing but I don't know what it is. I googled a lot and some other people found a solution to similar problems but not exactly to mine. Does anyone have any clue or had the same issue ?
Check this one: https://github.com/apple/tensorflow_macos
Once downloaded you may use install_venv.sh to install tf with virtual environment.
Or install it to your current setup by running the command below:
python3 -m pip install --upgrade ~/Downloads/tensorflow_macos/x86_64/*.whl --no-dependencies --force
After following all the recommended tensorflow install guides, by the time I tried "pip install --upgrade tensorflow" it kept saying "No matching distribution found" and "Could not find a version that satisfies the requirement tensorflow (from versions:none)", why does this happen?? Also I'm using Python 3.7!!
It has been reported some issues with Python 3.7 and TensorFlow. Maybe installing a specific version could work for you. For example:
pip install tensorflow==1.15.0
I'm trying to install python and tensorflow to learn as part of a class I am taking, and am having some issues installing tensorflow. I keep getting the same set of errors:
C:\Users\X\AppData\Local\Programs\Python\Python36-32\python.exe: can't find '__main__' module in 'C:\\'
or
Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow
I've tried uninstalling and reinstalling python while adding it to my path, and that solved me not being stuck with syntax errors (most of the time), but I haven't been able to make any progress. Any advice on moving forward would be appreciated.
To be clear, I am typing the following command into my command prompt:
pip3 install --upgrade tensorflow
As per the instructions on the TensorFlow website - I've been finding the "C:\>" raises a syntax error however.
your pip3 is broken, because I can clearly see tensorflow distribution on PyPi for python 3.6 https://pypi.python.org/pypi/tensorflow/1.5.0. Also, I just created a new virtual env for python 3.6 and I am able to pip install it.
Also you can download manually the "tensorflow-1.5.0-cp36-cp36m-win_amd64.whl",assuming you have windows, and pip install tensorflow-1.5.0-cp36-cp36m-win_amd64.whl