I am trying to install tensorflow. I have python 3.6.4 and am running Windows 10 64bit.
First I tried these two methods:
pip3 install tensorflow
pip3 install --upgrade tensorflow
But I got the error:
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
Then I tried to use the wheel file to install tensorflow. I saved the wheel file in the same folder as python 3.6. The wheel file I used was:
tensorflow-1.12.0-cp36-cp36m-win_amd64.whl
And I got the error:
tensorflow-1.12.0-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
I looked at the tensorflow installation guide and I don't understand what I'm doing wrong.
P.S. I also have python 2.7 installed. I use 'python' and 'pip' for python 2.
And I use 'py' and 'pip3' for python 3.
Related
I've got the following problem: I want to install CorentinJ/Real-Time-Voice-Cloning but there's a problem with PyTorch. Here's what I've done already:
downloaded the Real-Time-Voice-Cloning repository
downloaded the pre-trained models into the encoder, vocoder and synthesizer folder
installed ffmpeg
successfully ran pip install -r requirements.txt
installed Anaconda
successfully installed PyTorch using conda install pytorch torchvision torchaudio cpuonly -c pytorch
However, when checking the installation using python demo_cli.py I get the error:
ModuleNotFoundError: No module named 'torch'
Then, I tried installing PyTorch with Pip using the following command I got on https://pytorch.org/get-started/locally:
pip3 install torch==1.8.1+cpu torchvision==0.9.1+cpu torchaudio===0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
But I got the error:
ERROR: Could not find a version that satisfies the requirement torch==1.8.1+cpu (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.8.1+cpu
Also, I tried just pip3 install torch (and pip install torch) but got the error: ModuleNotFoundError: No module named 'tools.nnwrap'. I was able to install tools but didn't succeed in installing nnwrap.
What can I do to make Real-Time-Voice-Cloning work? Do I have to use CUDA for PyTorch to work?
My Python version: 3.7.4
You may install cpu only pytorch and vocoder,synthesizer , encoder files available on github repo of CoretinJ real time voice cloning. Then do : python demo_toolbox.py and you get the GUI or python demo_cli.py to use CLI.
Solution: I didn't know I have to use Anaconda Prompt for running python demo_cli.py. Then it works.
How do I install a specific version of tensorflow on windows ?(I'm using pip 20.1.1 and python 3.8)
I've tried the command
pip install tensorflow==1.14.0
I get the following error
ERROR: Could not find a version that satisfies the requirement
tensorflow==1.14.0 (from versions: none) ERROR: No matching
distribution found for tensorflow==1.14.0
I've also tried using to install it by downloading the .whl file by running the command
pip install C:\Users\Admin\Downloads\tensorflow-1.14.0-cp37-cp37m-win_amd64.whl
Here I get this error
ERROR: tensorflow-1.14.0-cp37-cp37m-win_amd64.whl is not a supported
wheel on this platform.
You're on the right track by downloading the wheel file, but you need to use python 3.7. cp37 in the wheel filename indicates that it was built for CPython 3.7.
Once you have python 3.7, you can also pip install tensorflow==1.14.0. You can see the list of available wheels at https://pypi.org/project/tensorflow/1.14.0/#files
So far, Tensorflow isn't supported for Python v3.8
To make use of tensorflow, you need to download previous versions of python.
About the wheel file you downloaded a file for v3.7 and trying to install with v3.8 which is why you get is not a supported wheel on this platform.
EDIT:
Python 3.8 supports Tensorflow v2 but not v1.
I'm trying to install tensorflow with pip, but every time I try I get this:
pip3 install Tensorflow
Collecting Tensorflow
ERROR: Could not find a version that satisfies the requirement Tensorflow
(from versions: none)
ERROR: No matching distribution found for Tensorflow
What do I do?
(I'm running Pip 19.2.2 on Windows 7 x64 if this info is needed)
Try python3 -m pip install tensorflow
Also tensorflow only supports 64 bit version Python, check that you have installed the correct version.
Also, often times its easier to use a slightly older Python version together with Tensorflow. I have found installations of e.g. Python 3.6.x + tf to work more smoothly than 3.7.x.
Run
pip install --upgrade tensorflow
I have Python 3.7, which currently doesn't support Tensorflow.
So I installed Python 3.6.7, went to the command line and typed in py -m pip install tensorflow, and still got the same error:
Could not find a version that satisfies the requirement tensorflow (from versions: ). No matching distribution found for tensorflow
What can I do ensure that I'm trying to install Tensorflow using Python 3.6.7?
Browsing the documentation: https://docs.python.org/3/installing/index.html
The solution is to invoke version 3.6 by specifying it as follows:
py -3.6 -m pip install tensorflow
I am running Mac OS 10.5 (Yosemite) and I just setup a virtualenv with python 3.5 to play a little bit with tensorflow. The virtualenv is setup correctly. However, I cannot install tensorflow. I always get the following error messages:
(tensorflow) Tom#MBP:~/tensorflow$ pip3 install --upgrade tensorflow
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
or this error:
(tensorflow) Tom#MBP:~/tensorflow$ pip3 install --upgrade \
> https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.5.0-py2-none-any.whl
tensorflow-1.5.0-py2-none-any.whl is not a supported wheel on this platform.
I actually do not understand what is happening here.
Any help is appreciated. Thanks
Try upgrading pip to use latest version and see if it helps:
pip3 install --upgrade pip