2 Versions of Python 3.9 and 3.8.6 are installed on Win 10. I Also want Tensorflow installed. But Pip recognises only Py 3.9 and hence does not installs tf locally. Is there a way out for this.
2 Versions of Python 3.9 and 3.8.6 are installed on Win 10. I Also want Tensorflow installed. But Pip recognises only Py 3.9 and hence does not installs tf locally. Is there a way out for this.
Try this command
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
This work with my python 3.9
The following command should be work for python version 3.9: python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
For dealing with multiple Python Versions it is highly recommended to use virtual environments. It makes live much easier. For a detailed guide how to set them up read this: https://www.freecodecamp.org/news/manage-multiple-python-versions-and-virtual-environments-venv-pyenv-pyvenv-a29fb00c296f/
This worked for me:
python3.8 -m pip install tensorflow
I think pip uses the latest python version, so you have to tell pip to install with python3.8 or use the beta version of tensorflow:
pip install tf-nightly
Change you're Environment variable from python 3.9 to python 3.8.6 .
1.search for environment variables in your pc see the pic --->.
Environment variables
2.Now select environment variables option see pic --->.
click on option
edit the path of wanted python see pic --->.
EditYour system is defaulting to python 3.9 because it is higher up in the system path list, so it is seen first. search for environment variable in windows then click on environment variable. Then under system variable, search for path and then move the python3.8 higher up than python3.9. Your system will now see 3.8 as default.
I did two things to make it work.