Skip to content

Instantly share code, notes, and snippets.

@cobysy
Created March 29, 2018 20:44
Show Gist options
  • Save cobysy/cb8d5e4b8347e98204e6a557d015ee7c to your computer and use it in GitHub Desktop.
Save cobysy/cb8d5e4b8347e98204e6a557d015ee7c to your computer and use it in GitHub Desktop.
install-tensorflow-anaconda-osx

Was facing this stupid error message:

~/anaconda3 ❯❯❯ bin/conda install tensorflow Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict:

  • scikit-image -> numpy[version='>=1.13.3,<2.0a0']
  • tensorflow Use "conda info " to see the dependencies for each package.

Steps to resolve:

~/anaconda3 ❯❯❯ bin/conda update --all ⏎ Solving environment: done

==> WARNING: A newer version of conda exists. <== current version: 4.4.10 latest version: 4.5.0

Please update conda by running

$ conda update -n base conda

Package Plan

environment location: /Users/.../anaconda3

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
tornado-5.0.1              |           py36_1         643 KB
cffi-1.11.5                |   py36h342bebf_0         204 KB
qtpy-1.4.0                 |           py36_0          43 KB
packaging-17.1             |           py36_0          33 KB
boto3-1.5.32               |           py36_0         106 KB
setuptools-39.0.1          |           py36_0         550 KB
pytz-2018.3                |           py36_0         212 KB
pip-9.0.1                  |           py36_5         2.2 MB
cryptography-2.2.1         |   py36h1de35cc_0         554 KB
python-dateutil-2.7.2      |           py36_0         256 KB
botocore-1.8.46            |           py36_0         2.9 MB
python-3.6.4               |       hc167b69_3        15.2 MB
pysocks-1.6.8              |           py36_0          22 KB
------------------------------------------------------------
                                       Total:        22.9 MB

The following packages will be UPDATED:

cffi:            1.11.4-py36h342bebf_0 --> 1.11.5-py36h342bebf_0
cryptography:    2.1.4-py36h842514c_0  --> 2.2.1-py36h1de35cc_0 
packaging:       16.8-py36he5e8135_0   --> 17.1-py36_0          
pip:             9.0.1-py36h1555ced_4  --> 9.0.1-py36_5         
pysocks:         1.6.7-py36hfa33cec_1  --> 1.6.8-py36_0         
python:          3.6.4-hc167b69_1      --> 3.6.4-hc167b69_3     
python-dateutil: 2.6.1-py36h86d2abb_1  --> 2.7.2-py36_0         
pytz:            2017.3-py36hf0bf824_0 --> 2018.3-py36_0        
qtpy:            1.3.1-py36h16bb863_0  --> 1.4.0-py36_0         
setuptools:      38.4.0-py36_0         --> 39.0.1-py36_0        
tornado:         4.5.3-py36_0          --> 5.0.1-py36_1         

The following packages will be DOWNGRADED:

boto3:           1.6.18-py36_0         --> 1.5.32-py36_0        
botocore:        1.9.18-py36_0         --> 1.8.46-py36_0        

Proceed ([y]/n)? y

Downloading and Extracting Packages tornado 5.0.1: ######################################################### | 100% cffi 1.11.5: ########################################################### | 100% qtpy 1.4.0: ############################################################ | 100% packaging 17.1: ######################################################## | 100% boto3 1.5.32: ########################################################## | 100% setuptools 39.0.1: ##################################################### | 100% pytz 2018.3: ########################################################### | 100% pip 9.0.1: ############################################################# | 100% cryptography 2.2.1: #################################################### | 100% python-dateutil 2.7.2: ################################################# | 100% botocore 1.8.46: ####################################################### | 100% python 3.6.4: ########################################################## | 100% pysocks 1.6.8: ######################################################### | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done

~/anaconda3 ❯❯❯ bin/conda install scikit-image ⏎ Solving environment: done

==> WARNING: A newer version of conda exists. <== current version: 4.4.10 latest version: 4.5.0

Please update conda by running

$ conda update -n base conda

All requested packages already installed.

~/anaconda3 ❯❯❯ bin/conda update -n base conda
Solving environment: done

Package Plan

environment location: /Users/.../anaconda3

added / updated specs: - conda

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
conda-4.5.0                |           py36_0         1.0 MB

The following packages will be UPDATED:

conda: 4.4.10-py36_0 --> 4.5.0-py36_0

Proceed ([y]/n)? y

Downloading and Extracting Packages conda 4.5.0: ########################################################### | 100% Preparing transaction: done Verifying transaction: done

~/anaconda3 ❯❯❯ bin/conda install tensorflow Solving environment: done

Package Plan

environment location: /Users/.../anaconda3

added / updated specs: - tensorflow

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
protobuf-3.5.1             |   py36h0a44026_0         589 KB
numpy-1.12.1               |   py36h8871d66_1         3.6 MB
libprotobuf-3.5.1          |       h2cd40f5_0         4.0 MB
tensorflow-1.1.0           |      np112py36_0        23.6 MB
numba-0.36.2               |np112py36h37f72b1_0         2.3 MB
scikit-image-0.13.0        |   py36h398857d_1        22.5 MB
------------------------------------------------------------
                                       Total:        56.6 MB

The following NEW packages will be INSTALLED:

libprotobuf:  3.5.1-h2cd40f5_0          
protobuf:     3.5.1-py36h0a44026_0      
tensorflow:   1.1.0-np112py36_0         

The following packages will be UPDATED:

numba:        0.36.2-np114py36hc2f221f_0 --> 0.36.2-np112py36h37f72b1_0

The following packages will be DOWNGRADED:

numpy:        1.14.0-py36h8a80b8c_1      --> 1.12.1-py36h8871d66_1     
scikit-image: 0.13.1-py36h1de35cc_1      --> 0.13.0-py36h398857d_1     

Proceed ([y]/n)? y

Downloading and Extracting Packages protobuf 3.5.1: ######################################################## | 100% numpy 1.12.1: ########################################################## | 100% libprotobuf 3.5.1: ##################################################### | 100% tensorflow 1.1.0: ###################################################### | 100% numba 0.36.2: ########################################################## | 100% scikit-image 0.13.0: ################################################### | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment