PyTorch installation on hardware-constrained device - python

I want to install PyTorch on a Debian Linux-based operating system (ev3dev).
System specification (Lego Mindstorms EV3):
64 MB RAM
TI Sitara AM18080 (ARM926EJ-S core) #300 MHz
Installed Python versions: Python 3.5.3, Python 3.9.4
32 GB SD-Card
The following installation command:
pip3 install torch==1.10.0+cpu
leads to the error: Could not find a version that satisfies the requirement torch==1.10.0+cpu
Now, my question is, if it is possible to install and run PyTorch on such a system. And if it is possible to install, is it possible to run with acceptable performance?
Thank, you for any hints.

Related

how to find suitable version of tensorflow for my machine

inux version 5.15.0-58-generic (buildd#lcy02-amd64-101) (gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38)
conda version == 22.9.0
pip version == 22.2.2
python version 3.5 and 3.9
I have a machine with intel pentium g2020 cpu and it seems like it does not support AVX instructions. I am currently working on a project and need tensorflow (keras to be more precise) on my machine but any version that I install throws an error. I would need you help to find the suitable version for my machine and the a way to install it.
I tried different python version and tensorflow version but all of them throw errors like kernel died or your machine does not support AVX instructions.

ERROR: tensorflow_cpu-2.11.0-cp310-cp310-win_amd64.whl is not a supported wheel on this platform

I'm trying to install tensorflow,
at beginning I thought the error was caused by python 3.11
I changed the interpreter to python 3.10 but I still have the same problem.
I can't install tensorflow and the error is
ERROR: tensorflow_cpu-2.11.0-cp310-cp310-win_amd64.whl -
is not a supported wheel on this platform.'''
intel laptop running on win 11, amd ryzen 5000 series, amd radeon graphics
thanks
screen vscode
The API you are using basically a single version of tensorflow 2.11.0. Developers designed different wheels for differnt OS requiremnts. As as the latest version of tensorflow is 2.11.0 so don't wory installing through Above API. Install directly using PIP. Let PIP decide supported version.
pip install tensorflow

Tensorflow installing error: __ is not a supported wheel on this platform

I'm trying to install tensorflow on my PC but I keep getting errors.
I have seen multiple posts about tensorflow installing errors online but all I found was solutions saying that the version of python was not compatible. However, I am using python 3.8 and I am using the URL for python 3.8 provided on tensorflow's website, so I don't see how that could be the issue.
The command I'm using:
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.2.0-cp38-cp38-win_amd64.whl
The error I'm getting:
ERROR: tensorflow_cpu-2.2.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
I'm using python 3.8, pip 20.1.1 and my PC is running 64 bit Windows 10.
From tensorflow's website, the requirements are :
Python 3.5-3.8
pip 19.0 or later
Windows 7 or later
Which are all satisfied.
Why am I getting this error?
EDIT: using only pip install tensorflow gets me the following errors:
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
It's likely you're using the 32bit version of python 3.8 instead of the 64bit version. You can check by opening the interpreter and looking at the first line. If it has 32 bit (Intel) or something similar, then it would be the 32 bit version. To get the 64bit edition, scroll down to Files on this link https://www.python.org/downloads/release/python-380/ and pick up the x86-64 version.

Torch installation results in not supported wheel on this platform

Tried running pip3 install torch===1.4.0 torchvision===0.5.0 -f https://download.pytorch.org/whl/torch_stable.html first, taken from PyTorch website
which resulted in
No matching distribution found for torch===1.4.0
and Could not find a version that satisfies the requirement torch===1.4.0 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
Finally downloaded the .whl file from downloads page and tried installing locally like so 'C:\Users\Raf\AppData\Local\Programs\Python\Python38\Scripts\pip.exe' install torch-1.4.0+cpu-cp37-cp37m-win_amd64.whl
after which I get torch-1.4.0+cpu-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
using 64 Python 3.8, on 64 bit Windows
using 64 Python 3.8
but you downloaded the cp37 whl which is for python 3.7. There is currently no whl file available for python 3.8. So either install from source (probably not recommended), install a different python version or create a virtual environment with python 3.7
Update
There is now: https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp38-cp38-win_amd64.whl
I faced the similar issue, even if your python version is correct you can still face this problem if you had install 32x instead of 64x
If it is 32-bit you will face the same problem.
To check the bit version of python on your system run this
python -c "import struct;print( 8 * struct.calcsize('P'))"
This will return 32 or 64
If it returns 32 change it to 64 and reinstall the PyTorch
https://www.python.org/downloads/windows/

Can't install tensorflow on windows 7 32-bit

I can't install TensorFlow in Windows 7, Python 3(32-bit, Lenovo ThinkPad X201s).
When I type pip3 install tensorflow:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\sjkim>pip3 install tensorflow
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from
versions: )
No matching distribution found for tensorflow
C:\Users\sjkim>
And I also have 2 python versions.
How can I install it?
TensorFlow is only tested and supported for 64-bit, x86 systems. I don't believe you can install TensorFlow through pip or conda normally from a 32-bit system.
You CAN run a linux docker container thought docker for windows, but it is based on vm and it didn't support gpu.
I have provided a 32 bit tensorflow built for windows https://docs.docker.com/docker-for-windows/#switch-between-windows-and-linux-containers, although it's not a helpful thing.
32-bit process can use only 2GB memory; a complex model would not load.

Categories