I was trying to install tensorflow but it wasnt being solved. I eventually made a virtual environment and then tried installing tensorflow but it still didn't work: enter image description here enter image description here
I tried installing tensorflow. Look my python version is 3.12(I know that tensorflow doesnt work with python3.12. I installed python3.11 but even when i select my interpreter as python3.11 i still dont get my installation
I have tried installing tensorflow via multiple ways. Once i used: python -m install tensorflow I used: pip install tensorflow
I made a venv, activated it then typed pip install tensorflow.
Short answer: Install Python3.11, then check what is it installed as (py or python?), I installed it as py so I typed:
py -m pip install tensorflow
in cmd and it worked.
Long answer:
Currently, tensorflow
does not support python3.12.
This means you have have to install some other python version. I installed python3.11.
I tried to change the Python interpreter to 3.11 in VS code but this did not work. After talking to some experts on Discord, I found I had installed Python 3.11 as py, not python. After running the above code in cmd, it worked.