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.
Related
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
I am having a difficult time getting tensorflow to install on a MacBook Pro.
Initially, I tried pip3.8 install tensorflow in my virtual environment. It installed but gives the following error when I try to use it:
This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
I get that this is a warning, but I think it's a serious warning that I am going to have performance issues with any non-trivial work.
Based on this post (Tensorflow on MacOS: Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA), I uninstalled tensorflow and followed the steps. After I installed Bazel, using homebrew, I got an error when I ran ./configure:
Please downgrade your Bazel installation to version 0.26.1.
According to this: (https://github.com/bazelbuild/bazel/releases) the oldest version is 3.2. I had 3.7 installed. So I uninstalled Bazel using homebrew. This felt like a dead end even though compiling from the source seems like the correct way to go. That version it's asking for is not even remotely close to a current version. I think the message is not telling me what I need to know.
Next I tried using pip to install the version recommended by Tensorflow.org. (https://www.tensorflow.org/install/pip.html)
pip3.8 install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-2.4.0-cp38-cp38-macosx_10_14_x86_64.whl
This successfully installed as well, but gives me similar errors as my original install and fails the test recommended under the list of installations on the tensorflow.org page.
I think I'm making a novice mistake. Can anyone assist here?
It's not serious warning, you can either wait for macOS 12.0+ to have built-in Apple Metal Acceleration or run Intel optimized wheels for macOS, but it support only TensorFlow 2.0
Not really a coding related question.
I am trying to install tensorflow on Intel Xeon(R) CPU E5620 which has Ubuntu 19.10. I can't install it with pip( could someone please explain why). It does gets installed using pip but it just says,
illegal instruction (core dumped)
I have tried building it from the source, but that was a pretty painful process, takes way too much time.
My question is, is their any easier way to install tensorflow on my PC?
Try using conda environment. I have no problem installing and using tensorflow on my machine. I am using tensorflow 1.15 btw and as far as I recall I installed it using pip install tensorflow-gpu==1.15
Cpu model: Intel(R) Xeon(R) CPU E5-2620 v4 # 2.10GHz
OS: Ubuntu 18.04
conda environment python version: 3.5.6
For Intel Z600
Processor: Xeon(R) CPU E5620
OS : Ubuntu 19.10
GPU : GTX 1050
CUDA : 10.0
cuDNN : 7.4
NCCL : 2.6
with the above configuration I successfully build tensorflow 1.14 from source, NO their is no other way to get tensorflow/tensorflow-gpu on this particular PC. I have experienced this that pip and conda don't work when installing tensorflow and that building from source or using docker as mentioned on tf official documentation is the best possible way as for 15 May 2020.
I figured that someone in near future might want to build tensorflow from source on a xeon based CPU, so I wrote how I did it step by step here, https://github.com/kazzastic/Tensorflow-BuildFromSource
I started learning about the tensorflow recently and decided to switch to the GPU version, because it is much faster, but I can not import it, it always gives the same error.
I already tried:
Installing it by pip, in python 3.6.8, cuda 10 and the most recent cuDNN for cuda 10
I tried reinstalling python, CUDA and cuDNN
Tried installing Visual Studio and installed CUDA 9 and cuDnn
I tried installing the latest Anaconda, created a "default" env and another in python 3.6 (also tried in 3.5), pip install tensorflow-gpu in both cases
my last attempt was to follow a tutorial on youtube, I did exactly as demonstrated (https://www.youtube.com/watch?v=KZFn0dvPZUQ)
Everything i tried returned the same error.
Traceback: https://pastebin.com/KMEsZAmq
The complete code: https://pastebin.com/7tS0Rd5S (was working on CPU version)
.
My Specs:
i5-8400
8 GB Ram
GTX 1060 6GB
W10 home x64
just have a look here:
https://www.tensorflow.org/install/gpu
Tensorflow supports CUDA 9.0, you will need to downgrade your CUDA or use one of the tensorflow's docker images:
https://www.tensorflow.org/install/docker
via docker it won't use your CUDA drivers
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.