user1801605
user1801605

Reputation: 441

Can I install Tensorflow on both Python 2 and 3?

I've installed Tensorflow using Python 3 (pip3 install). Now, since Jupyter Notebook is using Python 2, thus the python command is linked to python2.7, all the codes in Jupyter Notebook get error (ImportError: No module named tensorflow).

Question: Can I install Tensorflow running side by side for both Python 2 and 3?

Upvotes: 0

Views: 975

Answers (1)

Mamun
Mamun

Reputation: 512

Yes you can do. Easy step is install python anaconda then create environment with python 2.7 and python 3. Install Tensorflow for both environment

Upvotes: 1

Related Questions