python - How to downgrade tensorflow, multiple versions possible? -


i have tensorflow 1.2.1 installed, , need downgrade version 1.1 run specific tutorial. safe way it? using windows 10, python 3.5. tensorflow installed pip3, "pip3 show tensorflow" returns blank.

is possible have multiple version of tensorflow on same os?

is possible have multiple version of tensorflow on same os?

yes, can use python virtual environments this. docs:

a virtual environment tool keep dependencies required different projects in separate places, creating virtual python environments them. solves “project x depends on version 1.x but, project y needs 4.x” dilemma, , keeps global site-packages directory clean , manageable.

after have install virtualenv (see docs), can create virtual environment tutorial , install tensorflow version need in it:

path_to_python=/usr/bin/python3.5 virtualenv -p $path_to_python my_tutorial_env  source my_tutorial_env/bin/activate # activates new environment pip install tensorflow==1.1 

path_to_python should point python installed on system. when want use other version of tensorflow execute:

deactivate my_tutorial_env 

now can work again tensorflow version installed on system.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -