Reputation: 3327
I am trying to install tensorflow for python on a Mac, and I am following the instructions provided on the website. I decided to use virtualenv because pip has been giving me issues lately, and the website recommended virtualenv as well. Although I apparently have downloaded tensorflow for Python 3, I also want to have it available in Python 2 (which I use more anyway). Here is what I have done so far:
$virtualenv --system-site-packages ~/tensorflow
$ cd ~/tensorflow
tensorflow$ pip install --upgrade tensorflow
I get the following message to show up: Requirement already up-to-date: tensorflow in /usr/local/lib/python3.6/site-packages (1.8.0)
If you have any suggestions or commands to run, that would be greatly appreciated.
Upvotes: 0
Views: 196
Reputation: 2821
If you want to create a virtual environment with python 2,
virtualenv -p /usr/bin/python2.7 my_project
and then activate your project,
source my_project/bin/activate
check the environment and then install tensorflow,
python --version
pip --version
pip list
pip install tensorflow
Upvotes: 1