jeffheaton / t81_558_deep_learning

T81-558: Keras - Applications of Deep Neural Networks @Washington University in St. Louis
https://sites.wustl.edu/jeffheaton/t81-558/
Other
5.72k stars 3.03k forks source link

Create environment fails - tensorflow-deps #116

Closed SaschaHeyer closed 3 years ago

SaschaHeyer commented 3 years ago

Hi

followed this steps https://github.com/jeffheaton/t81_558_deep_learning/blob/master/install/tensorflow-install-mac-metal-jul-2021.ipynb

Unfortunately, this step fails:

conda env create -f tensorflow-apple-metal.yml -n tensorflow

With the following error message:

Collecting package metadata (repodata.json): done
Solving environment: failed

ResolvePackageNotFound: 
  - tensorflow-deps

Best regards Sascha

jeffheaton commented 3 years ago

This usually happens when you had a Python installed before installing miniforge. I suggest running the command "which python", which will give you the paths to all pythons installed. Look at the top one, if it is not miniforge (installed by Brew) then you will get this error. Suggest looking at the "~/.kshrc" file and make sure it has the path to your miniforge installation.

jeffheaton commented 3 years ago

My students run into this issue too. Basically, previous versions of Python are staying as the default path, and when you try to install tensorflow-deps it fails, because that is only a "miniforge" package, generally. More info here:

https://github.com/jeffheaton/t81_558_deep_learning/blob/master/install/tensorflow-install-mac-metal-jul-2021.ipynb