Installing TensorFlow in python 3.5 Anaconda distro conda env

OneRaynyDay

What I did to try and solve this issue:


  1. Using Mac OS X
  2. Using Anaconda distro currently in my computer as the path /Users/hongshuhong/anaconda/
  3. Used conda instead of virtualenv because of my distribution of python. I referred to the guide here and tried to download the same with conda's package manager: https://www.tensorflow.org/versions/master/get_started/os_setup.html#download-and-setup
  4. Tensorflow worked correctly when I created an anaconda env using the command conda create --name ML python=2.7 anaconda to state I'm using 2.7 python, then used this command conda install -c https://conda.anaconda.org/jjhelmus tensorflow gathered from the Anaconda Cloud to attempt to download it. It worked when I said
$ python
>>> import tensorflow as tf
...

However, it doesn't really fix the issue:


However, I want to use the 3.5 distribution of python, simply to keep up with the times and not use outdated pythons.

  1. I attempted to download it using the same way in python=3.5, but it raised this error when I tried to run the command conda install -c https://conda.anaconda.org/jjhelmus tensorflow :
Hint: the following packages conflict with each other:
  - tensorflow
  - python 3.5*
Use 'conda info tensorflow' etc. to see the dependencies for each package.

And I ran the conda info tensorflow to see what was going on and I got:

Fetching package metadata: ....
Error: No packages found in current osx-64 channels matching: tensorflow

This is really frustrating me and I'm not sure what to do. If there's no work around for this, I think I'll have to use Anaconda's python 2.7 distribution for TensorFlow experiments. If anyone has any idea how to solve this compatibility issue(or some other kind of issue), I'd be extremely grateful. Thanks.

EDIT: I'm pretty sure TensorFlow supports 3.5 because in their documentations they say they support 2.7 python and 3.3+. If there were no clues as to whether they support 3.5, I would have already given up and used 2.7 by now.

walkingintopeople

The version of TensorFlow packaged here is version 0.5.

Python 3.x support was introduced in TensorFlow 0.6, so you need to figure out how to install the newest version into Anaconda.

Usually you can install packages into anaconda using pip, but I haven't succeeded with TensorFlow.

EDIT: I just noticed that the documentation hasn't updated the url to the pip-wheel.

To install tensorflow in python 3.5 via pip, use the following command:

$ sudo easy_install --upgrade six
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py3-none-any.whl

This links to ...tensorflow-0.5.0-py2-none-any.whl, which is an older version of tensorflow for python 2.x.

Tensorflow get started page link.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Installing Tensorflow with Python 3.5 and Anaconda

From Dev

Installing Python Package to Conda Env Without Using Conda

From Dev

Installing tensorflow with Pip Python 3.5 anaconda in windows

From Dev

Installing tensorflow on Anaconda

From Dev

Issues installing tensorflow in anaconda

From Dev

Installing opencv 3.1 with anaconda python3?

From Dev

Installing tensorflow CPU with windows 10 anaconda python 2.7

From Dev

Errors installing TensorFlow 1.2 GPU in Anaconda env with py 3.6 Ubuntu 16.04 Setup tools

From Dev

Installing PyMySQL for Anaconda python

From Dev

installing Ipopt for anaconda python

From Dev

Vagrant Installing Anaconda Python?

From Dev

Installing openCV in anaconda3 - Python.h: No such file or directory

From Dev

Installing Tensorflow on centos 5

From Dev

Installing Tensorflow on windows Anaconda2

From Dev

Conda install - Python3, Tensorflow, skdata - one environment

From Dev

change default environment from (base) to (env) in conda/anaconda in Ubuntu

From Dev

Installing Pyomo on Windows with Anaconda (Python)

From Dev

Anaconda conda install error when installing tradingwithpython package

From Dev

Python conda - How to upgrade package not available on anaconda

From Dev

Conda and Anaconda running different Python Installs?

From Dev

Installing another Linux Distro

From Dev

Link conda HDF4 to conda GDAL (Anaconda Python)

From Dev

TensorFlow for Python 3 throws an error when installing on Ubuntu

From Java

Python - Activate conda env through shell script

From Dev

Python - Activate conda env through shell script

From Dev

Installing python package variants with conda/pip on MacOS

From Dev

How do I get Anaconda3 to see Python 2.7 after installing it?

From Dev

Installing caffe on ubuntu 15.04 with anaconda 3 for python 3.4 - no module caffe found

From Dev

Will installing Anaconda3 change Mac OS X default Python version to 3.4?

Related Related

  1. 1

    Installing Tensorflow with Python 3.5 and Anaconda

  2. 2

    Installing Python Package to Conda Env Without Using Conda

  3. 3

    Installing tensorflow with Pip Python 3.5 anaconda in windows

  4. 4

    Installing tensorflow on Anaconda

  5. 5

    Issues installing tensorflow in anaconda

  6. 6

    Installing opencv 3.1 with anaconda python3?

  7. 7

    Installing tensorflow CPU with windows 10 anaconda python 2.7

  8. 8

    Errors installing TensorFlow 1.2 GPU in Anaconda env with py 3.6 Ubuntu 16.04 Setup tools

  9. 9

    Installing PyMySQL for Anaconda python

  10. 10

    installing Ipopt for anaconda python

  11. 11

    Vagrant Installing Anaconda Python?

  12. 12

    Installing openCV in anaconda3 - Python.h: No such file or directory

  13. 13

    Installing Tensorflow on centos 5

  14. 14

    Installing Tensorflow on windows Anaconda2

  15. 15

    Conda install - Python3, Tensorflow, skdata - one environment

  16. 16

    change default environment from (base) to (env) in conda/anaconda in Ubuntu

  17. 17

    Installing Pyomo on Windows with Anaconda (Python)

  18. 18

    Anaconda conda install error when installing tradingwithpython package

  19. 19

    Python conda - How to upgrade package not available on anaconda

  20. 20

    Conda and Anaconda running different Python Installs?

  21. 21

    Installing another Linux Distro

  22. 22

    Link conda HDF4 to conda GDAL (Anaconda Python)

  23. 23

    TensorFlow for Python 3 throws an error when installing on Ubuntu

  24. 24

    Python - Activate conda env through shell script

  25. 25

    Python - Activate conda env through shell script

  26. 26

    Installing python package variants with conda/pip on MacOS

  27. 27

    How do I get Anaconda3 to see Python 2.7 after installing it?

  28. 28

    Installing caffe on ubuntu 15.04 with anaconda 3 for python 3.4 - no module caffe found

  29. 29

    Will installing Anaconda3 change Mac OS X default Python version to 3.4?

HotTag

Archive