I've been trying to install tensorflow 1.0.1 in a variety of ways with no luck. Currently using Python 3.7 on Windows 10 (64 bit platform). I have plenty of CPU and memory power, but essentially little gpu power (using a server). My best bet was to use install an older tf version through a .whl file (in virtualenv), but keep getting an error. I download this while in the directory of the file:
pip install tensorflow-1.3.0-cp35-cp35m-win_amd64.whl
but keep getting-
tensorflow-1.3.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.
I prefer to continue using tf through Windows and CPython.... unless there's no other way
You need to use 'cp37' whl file instead of'pip install tensorflow-1.3.0-cp35-cp35m-win_amd64.whl'
cp35 is meant to be installed on Python 3.5.
But i think 1.3.0 only support up to Python 3.6 (https://pypi.org/project/tensorflow/1.3.0/#files)
Hope this helps, I'm also new to this and please correct me if I'm wrong.
Cheers
Related
I am trying to install pytorch on Windows 11 for quite some time now. I have upgraded pip and everything can someone help me with it?
python version 3.11.1 64 bit installed
I tried upgrading pip
I tried giving it the proper URL
I tried specifying version of it
NOTHING WORKS
Pytorch does not currently support python 3.11 on their main release branch[1].
Easy route:
You should consider using a python version released prior 3.11 (ex. 3.10[3]).
Medium route:
Install pytorch from their nightly release, it supports python 3.11[2]
I have been trying to install SciPy from PyCharm for some time. I have tried using the in-built package installer, however it would fail. Also I tried installing as a .whl and running as
Pip install scipy-1.7.1-cp37-cp37m-macosx_10_9_x86_64.whl
and that would fail too. Currently unsure where to move forward from here. I use Windows 10 and am currently using Python version 3.10 64 bit. The error message that is coming up is
ERROR: scipy-1.7.1-cp37-cp37m-macosx_10_9_x86_64.whl is not a supported wheel on this platform.
This may be caused because Scipy is not supporting Python 3.10 (yet). scipy-1.7.1-cp37-cp37m-macosx_10_9_x86_64.whl is the first wheel that appears on PyPI. I suppose that PyCharm got confused, and tried to find a compatible wheel.
You have to wait for a compatible release from the Scipy developers (seems like they are waiting for some issues to be resolved). In the meantime, you can try a lower Python version (what about Python 3.9?)
I have been trying to install PySide6 on my PC (Windows 10 64bits) with Python 3.9.0 installed, but I keep getting errors every time.
I used the command pip install PySide6 It is not working for me.
Any help will be appreciated.
Error:
ERROR: Could not find a version that satisfies the requirement pyside2 (from versions: none) ERROR: No matching distribution found for pyside2
Check if you Python installation is 64 bit and not 32 bit. It has an impact on compatible and thus available binaries.
At the time of writing:
The problem is that most of the binaries are not yet compatible and are not yet compiled for Python 3.9 at the time of writing. If you want the best compatibility, use Python 3.7 or Python 3.8. Most of the packages have been compiled for Python 3.8 but not many for Python 3.9.
For the future people that come here:
I would recommend you to keep one minor version behind the current stable release to not face dependency problems as the above section explains.
For Example:
If current stable release is Python 3.12 then you should install Python 3.11 or Python 3.10. Just one or two versions behind the current stable release.
I'm trying to build Tensorflow from source (if I install directly it works fine but I'm trying to get AVX2/FMA extensions support as I can't use CUDA/GPU) and I'm following this tutorial to build Tensorflow 1.15 (which is needed for the project that I use, I can't use 2.x).
I've built Tensorflow successfully, but when I try to install the wheel with pip I get the following error:
ERROR: tensorflow-1.15.5-cp37-cp37m-macosx_11_0_x86_64.whl is not a supported wheel on this platform.
Well, I know what the error means but the problem is that:
The wheel, as implied by the filename, is built for:
Python 3.7
macOS 11.0
x86/64
Which is already what I have (yup, double checked Python version, it's exactly Python 3.7.9, and no I'm not on M1 if that matters, I'm on Intel Mac). Why am I getting this error message even though I'm on the platform that the wheel is built for?
UPDATE: I'm already on the latest pip as of writing, and I can verify pip and python point to the same version:
(tf) can#can-mbp tensorflow % which pip
/opt/anaconda3/envs/tf/bin/pip
(tf) can#can-mbp tensorflow % which python
/opt/anaconda3/envs/tf/bin/python
(tf) can#can-mbp tensorflow % pip -V
pip 21.0 from /opt/anaconda3/envs/tf/lib/python3.7/site-packages/pip (python 3.7)
(tf) can#can-mbp tensorflow % python -V
Python 3.7.9
FOR MACOS - BIG SUR
I was able to solve this problem when I found that the version of the macOS operating system does not match the version actually recognized by python
I'm using macOS 11.4, the file is with this version. But when typing a command in the terminal, I found that python recognizes 11.0.
python3
from distutils import util
util.get_platform()
>> 'macosx-11.0-arm64'
generated file name:
opencv_python-4.5.2+2344814-cp39-cp39-macosx_11_4_arm64.whl
new file name:
opencv_python-4.5.2+2344814-cp39-cp39-macosx_11_0_arm64.whl
Upon #Axe319's comment I took a look at https://github.com/apple/tensorflow_macos/issues/46 and seen that simply changing the wheel's filename's OS section to 10_9 works. There is probably a bug with parsing macOS 11.0 or Python doesn't think it supports 11.0 (maybe that particular Python/pip version was before Big Sur was released).
Make sure the Python version you are using (32/64 bit) does match what the wheel requires ;)
My tensorflow 2.0.0beta1 runs normally, but I cannot install tensorflow-text using the command pip install tensorflow-text (as described on the tensorflow page). I can find it using pip search tensorflow-text but I am getting an error
ERROR: Could not find a version that satisfies the requirement tensorflow-text (from versions: none)
There are no requirements for this package (i.e. a specific python version).
I am running on windows, using conda, python 3.6.9
Update
The first release candidate of 2.4.0 was published today which features windows wheels for the first time. 2.4.0rc0 on PyPI. Note that only wheels for Python 3.6 and 3.7 are working properly at the moment. Install via e.g.
> py -3.7 -m pip install tensorflow-text==2.4.0rc0
Original answer
At the time of writing this, tensorflow-text is not available for Windows yet.
Windows is something we do wish to add. We've had some difficulties getting a working package though, which is why it is not available yet. The difference between this library and tensorflow-probability is we make use of custom ops written in c++, and building those shared libraries to work well with Tensorflow inside Windows has had issues; plus, the lengthy build times on Windows has made iterating on these issues slow. While the next beta release (this week) will not include Windows, we would like for the next release to include it.
Source.