Reputation: 47
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.
Upvotes: 2
Views: 63683
Reputation: 6006
I did two things to make it work.
Upvotes: 0
Reputation: 81
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
Upvotes: 7
Reputation: 501
Your 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.
Upvotes: 0
Reputation: 133
Try this command
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
Upvotes: 12
Reputation: 129
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
Upvotes: 4
Reputation: 271
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
Upvotes: 2
Reputation: 11
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 --->.
EditUpvotes: 0
Reputation: 115
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/
Upvotes: 2