How Switch Tensorflow Versions Between 2.0 And 1.x?
Is there a way to switch versions of tensorflow?, when I installed tensorflow 2.0 using conda, it updated many things even python. On runing conda list it shows both versions; te
Solution 1:
I would personally use two different virtual environments here. This would make sure you don't have dependency issues when using 2.0 vs 1.x. Conda environments are very easy to use. For example:
create the environment
conda create--tensorflow1
activate the environment
conda activate tensorflow1
When you have the environment activated you can conda/pip install TensorFlow 1.x and all dependencies will be contained within the environment. You can do the same thing with TensorFlow 2.0.
I can't comment on the above solution you have posted, but these are the cases where virtual environments are extremely useful.
Full docs here:
https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
Post a Comment for "How Switch Tensorflow Versions Between 2.0 And 1.x?"