Last month they released tensor-flow comparability with windows. Looking at the docs I've installed python 3.6 and run
pip install tensorflow-gpu
but it doesn't find it and therefore doesn't install it.
could not find a version that satisfies the requirements tensorflow-gpu(from versions)
Am I missing something basic? How can I fix or circumvent this?
A stable release of Python 3.6 for Windows became available on 12/23/2016, and we have not yet built TensorFlow packages for that version. (We will look into doing this after the holidays.) For now, your best options are:
Downgrade to Python 3.5 (64-bit version), which the pre-built packages support.
Try building TensorFlow from source.
Here is what i did to get tensorflow working with windows.
Download python 3.5.0 (64 bit from Python Releases for Windows)
Install it and check python version by running below command in cmd:
python --version
Python 3.5.0
Then run below command to upgrade pip to latest
python -m pip install --upgrade pip
Now install tensorflow using pip
pip install tensorflow
That's it you have installed tensorflow on windows. Below image shows what happens when you type above commands
Example to verify tensorflow is working.
$ python
...
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
I think you have to install Python 3.5 not 3.6. I'm having the same problem.
pip3 install tensorflow==tensorflow_version
Available tensorflow versions: (0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.4.1, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9.0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.10.1, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.12.2, 1.12.3, 1.13.0rc0, 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1)
Related
I was trying to run command
pip install -r requirements.txt -r requirements-local.txt
But I faced this issue I run python 3.8 and I couldn't understand why I also installed tensorflow too
ERROR: Could not find a version that satisfies the requirement tensorflow==1.12.2 (from versions: 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1)
ERROR: No matching distribution found for tensorflow==1.12.2
Tensorflow version 1.12.2 is not compatible with Python version 3.8. The first version compatible with it is Tensorflow version 2.2.0 (You can check the compatibility in the links in the section Programming Language).
So, to fix the problem you need to change the requirements to install the 2.2.0 at least. Notice that Tensorflow is already on version 2.9.1 that is compatible with Python version 3.10.
I opened up Atom and This error popped up for me, I am not sure what I should do here.
It asked me to do "python -m pip install 'python-language-server[all]'" but then when I ran that. It gave me the error
Error:
ERROR: Could not find a version that satisfies the requirement pylint>=2.5.0; extra == "all" (from python-language-server[all]) (from versions: 0.15.2, 0.16.0, 0.18.0, 0.18.1, 0.19.0, 0.20.0, 0.21.0, 0.21.1, 0.21.2, 0.21.3, 0.22.0, 0.23.0, 0.24.0, 0.25.0, 0.25.1, 0.25.2, 0.26.0, 0.27.0, 0.28.0, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.9.5)
ERROR: No matching distribution found for pylint>=2.5.0; extra == "all" (from python-language-server[all])
After this I tried "python -m pip install 'python-language-server'" but then this gave the error
Error:
WARNING: The script pyls is installed in '/Users/baner75418/Library/Python/2.7/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Please Help me with what I should do next also I am on macOS Big Sur.
It's a bug in python-language-server. I just reported it.
Meanwhile you can try using pip install --no-binary to install python-language-server from source distribution to work around the bug:
pip install --no-binary=python-language-server 'python-language-server[all]'
I am attempting to install a specific version of tensorflow as part of the requirements for some code I'm trying to use (https://github.com/serengil/deepface)
When I attempt to install it like I normally do in command prompt I get the following.
C:\Windows\system32>pip install tensorflow==1.9.0
ERROR: Could not find a version that satisfies the requirement tensorflow==1.9.0 (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 1.15.0rc0, 1.15.0rc1, 1.15.0rc2, 1.15.0rc3, 1.15.0, 1.15.2, 1.15.3, 1.15.4, 2.0.0a0, 2.0.0b0, 2.0.0b1, 2.0.0rc0, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0rc0, 2.1.0rc1, 2.1.0rc2, 2.1.0, 2.1.1, 2.1.2, 2.2.0rc0, 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1)
ERROR: No matching distribution found for tensorflow==1.9.0
I have referenced a few other Stackoverflow questions (Installing Tensorflow 1.9 in Windows) and haven't been able to find a solution or how to go about getting the version needed.
tensorflow==1.9.0 is available on PyPI (link). Your issue is that you are probably using Python 3.7, which 1.9.0 doesn't support, only Python 2.7 and 3.3 to 3.6. Install 64bit Python 3.6 and use it instead of 3.7.
Until recently I was able to install the tensorflow 1.5.0 package when using python 3.6.7 on windows. Now I can't and from the message "from version" below it seems that no tensorflow package is available at all.
Did the support stop recently?
Some additional information taking into account the comments from micha137 and hoefling:
In linux, tensorflow is available in many flavors. This is the case with pip version 9.0.3, 10.0.1, and 18.1 I tried.
For example:
(env3)xxx#xxx-linux:/local/mnt/workspace/tmp$ pip install tensorflow==
Collecting tensorflow==
Could not find a version that satisfies the requirement tensorflow== (from versions: 0.12.0rc0, 0.12.0rc1, 0.12.0, 0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.4.1, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9.0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.10.1, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0)
No matching distribution found for tensorflow==
(env3)xxx#xxx-linux:/local/mnt/workspace/tmp$ pip --version
pip 18.1 from /local/mnt/workspace/tmp/env3/lib/python3.4/site-packages/pip (python 3.4)
By contract, in Windows:
C:\tmp>pip --version
pip 18.1 from c:\users\xxx\appdata\local\programs\python\python36-32\lib\site-packages\pip (python 3.6)
C:\tmp>pip install tensorflow==
Collecting tensorflow==
Could not find a version that satisfies the requirement tensorflow== (from versions: )
No matching distribution found for tensorflow==
Some additional information:
C:\tmp>pip install -vvv tensorflow. -
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
Created temporary directory: C:\Users\xxx\AppData\Local\Temp\pip-ephem-wheel-cache-fmlkvkla
Created temporary directory: C:\Users\xxx\AppData\Local\Temp\pip-req-tracker-oijk67__
Created requirements tracker 'C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-req-tracker-oijk67__'
Created temporary directory: C:\Users\xxx\AppData\Local\Temp\pip-install-tt2d7lx0
Cleaning up...
Removed build tracker 'C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-req-tracker-oijk67__'
Invalid requirement: 'tensorflow.'
Followed by a lengthy traceback.
And:
C:\tmp>python -c "from setuptools import pep425tags; print(pep425tags.get_supported()[0])"
c:\Users\xxx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\setuptools\pep425tags.py:89: RuntimeWarning: Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
warn=(impl == 'cp')):
c:\Users\xxx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\setuptools\pep425tags.py:93: RuntimeWarning: Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
warn=(impl == 'cp')):
('cp36', 'cp36m', 'win32')
Judging by the output of
python -c "from setuptools import pep425tags; print(pep425tags.get_supported()[0])"
('cp36', 'cp36m', 'win32')
you have the supported Python version, but a 32 bit distribution installed (the platform tag is win32; for 64 bit Python on Windows, it should be win_amd64). Tensorflow is available for 64 bit distributions only (all the wheels on PyPI have platform tag either macosx_10_11_x86_64 for MacOS, or manylinux1_x86_64 for Linux, or win_amd64 for Windows). Installing the 64 bit Python (e.g. from python-3.6.8-amd64.exe) will do the trick.
You could try to list the available versions:
$ pip.exe install tensorflow==
Collecting tensorflow==
Could not find a version that satisfies the requirement tensorflow== (from ver sions: 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7. 0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9 .0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0)
No matching distribution found for tensorflow==
When I try to install pandas, I get this error:
Could not find a version that satisfies the requirement numpy==1.9.3 (from versions: 1.10.4, 1.11.0, 1.11.1rc1, 1.11.1, 1.11.2rc1, 1.11.2, 1.11.3, 1.12.0b1, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.12.1rc1, 1.12.1, 1.13.0rc1, 1.13.0rc2, 1.13.0, 1.13.1, 1.13.3, 1.14.0rc1, 1.14.0, 1.14.1, 1.14.2, 1.14.3)
No matching distribution found for numpy==1.9.3
I use
pip install pandas
and
python -m pip install pandas
In both cases, I get the same error.
Thanks.
You can update pip and try it again. The last version of pip is 10.0.1.
python -m pip install --upgrade pip
You have some sort of versionitis (versions of different software not being compatible with each other). If you are running Python <3.4, that could be the cause because Pandas no longer supports Python <3.4. See this SO thread.
I saw this issue on Mac OS running python 3.7 and pandas 0.23. I downgraded to python 3.6 and pandas 0.22, and that fixed my issue.