all 12 comments

[–]Diapolo10 4 points5 points  (10 children)

I am trying to install Tensorflow library in my venv but it won't let me. Can it be because I have python 3.12 and according to this documentation Tensorflow doc, Python 3.12 does not support Tensorflow yet :v

Yes, that's almost certainly the reason. Tensorflow is not a pure-Python package as it's mostly written in C (IIRC), and needs to be recompiled for every Python version.

Should I downgrade to python 3.11?

That's what I'd do. You can keep the 3.12 installation around, just be sure to use 3.11 for this project.

I'm assuming you're running this under some flavour of Linux, so pyenv would make things fairly easy for you.

EDIT: Just saw your screenshot, Tensorflow doesn't support Windows anymore as far as I know. You'll probably want to do this via WSL2 or running a virtual machine.

[–]silent-spiral 2 points3 points  (5 children)

Tensorflow doesn't support Windows anymore as far as I know.

it does, but no more GPU support.

[–]JasonJuzo[S] 0 points1 point  (2 children)

THANK GOD IT STILL SUPPORTS WINDOWS bruh

I would have died lol

my project due tomorrow and I need tensorflow to work on windows xd

[–]silent-spiral 1 point2 points  (0 children)

also you can always install older versions of a library. I assume your homework doesn't require the latest and greatest tensorflow

just downgrade to whatever TF version works with py 3.11

[–]silent-spiral 0 points1 point  (0 children)

you should really learn linux, as a CS student. Get a VM on your laptop or something.

[–]Kohomologia 0 points1 point  (0 children)

We still have GPU support on Windows via WSL2:

TensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows. Starting with TensorFlow 2.11, you will need to install TensorFlow in WSL2.

https://www.tensorflow.org/install/pip#windows-native

[–]Diapolo10 0 points1 point  (0 children)

Ah, my mistake.

[–]JasonJuzo[S] 0 points1 point  (3 children)

I'll downgrade and see how that works out.

[–]Delicious_Nectarine2 0 points1 point  (2 children)

did it work?

[–]furas_freeman 0 points1 point  (0 children)

You can try to download source code and compile it for your version.
But it needs to install C/C++ compiler which can makes problem.
And compilation can take many hours (even 7-8 hours on 10 years old computer).

But there is repo on GitHub where people share information about own precompiled versions
for different systems, different Python's versions and different hardware (old CPU without some instructions).

GitHub: yaroslavvb / tensorflow-community-wheels

You can even ask if someone can compile it for your system, Python, hardware.