udacity / CarND-Term1-Starter-Kit

MIT License
494 stars 602 forks source link

Error installing keras on macOS Sierra #80

Closed ghost closed 6 years ago

ghost commented 7 years ago

After issuing

sh conda env create -f environment.yml

It fails when it gets to keras:

Could not import setuptools which is required to install from a source distribution.
Traceback (most recent call last):
  File "/Users/ejstembler/miniconda3/envs/carnd-term1/lib/python3.5/site-packages/pip/req/req_install.py", line 387, in setup_py
    import setuptools  # noqa
  File "/Users/ejstembler/.local/lib/python3.5/site-packages/setuptools/__init__.py", line 12, in 
    import setuptools.version
  File "/Users/ejstembler/.local/lib/python3.5/site-packages/setuptools/version.py", line 1, in 
    import pkg_resources
  File "/Users/ejstembler/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 74, in 
    import appdirs
ImportError: No module named 'appdirs'

CondaValueError: pip returned an error.

This is on macOS Sierra, version 10.12.5 (16F73)

I also tried replacing - keras==1.2.1 with - git+https://github.com/fchollet/keras.git in environment.yml; same error.

domluna commented 7 years ago

@ejstembler haven't run into this one before. Which version of the conda installer are you using?

mvirgo commented 6 years ago

No recent responses, so I'll close this out, but the error would indicate the need to pip install appdirs.