Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tensorflow install with conda conflict - UnsatisfiableError

Tried to install tensorflow using conda and its throwing a spec conflict error. I do not have python 3.5 installed

conda install -c conda-forge tensorflow
Fetching package metadata ...............
Solving package specifications: .

UnsatisfiableError: The following specifications were found to be in conflict:
  - python 3.6*
  - tensorflow -> python 3.5*
Use "conda info <package>" to see the dependencies for each package.

python --version Python 3.6.0 :: Anaconda custom (64-bit)

I cannot seem to run tensorflow on the normal python IDE and it says module not found. So I installed Anaconda and everything seems good except for tensorflow. Any way to install this?

like image 516
X10nD Avatar asked Nov 24 '25 23:11

X10nD


1 Answers

You seem to be installing tensorflow for python3.5 on a python3.6 environment. I would suggest you to create a seperate python environment for tensorflow. You can do it as follows

conda create -n Tensorflow anaconda python=3.5

This will create a anaconda environment called Tensorflow and install all the anaconda packages. You can also specify any other python distribution of your choice. Be sure you download the right tensorflow distribution depending on the python version you choose.

Then activate the newly created anaconda environment as follows

source activate Tensorflow

On windows

activate Tensorflow

This will switch the python environment. Then proceed to installing Tensorflow using pip as follows

pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.1.0-cp35-cp35m-win_amd64.whl

If you wish to install tensorflow with GPU support, you should install CUDA toolkit and the CUDNNv5.1. More details here

like image 62
Raja Sattiraju Avatar answered Nov 26 '25 13:11

Raja Sattiraju



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!