Hi @nolanchan,
I’m trying to setup my Jupyter notebook for lesson 1. I’m using Python 2.7, Anaconda2 and Cygwin (under Windows 10). My pip version is pip 9.0.1
I tried to install manually Keras 1.1.1 by downloading the file and then I typed “pip install Keras-1.1.1.tar.gz” in my terminal. The process started but failed at the end (see below, the displayed text in my terminal). I tried to solve the issue through https://stackoverflow.com/posts/36025294/revisions but does not work.
Do you have any idea about that ? Thanks.
$ pip install keras-1.1.1.tar.gz
Processing ./keras-1.1.1.tar.gz
Collecting theano (from Keras==1.1.1)
Using cached Theano-0.9.0.tar.gz
Requirement already satisfied: pyyaml in /usr/lib/python2.7/site-packages (from Keras==1.1.1)
Requirement already satisfied: six in /usr/lib/python2.7/site-packages (from Keras==1.1.1)
Collecting numpy>=1.9.1 (from theano->Keras==1.1.1)
Using cached numpy-1.13.3.zip
Collecting scipy>=0.14 (from theano->Keras==1.1.1)
Using cached scipy-0.19.1.tar.gz
Complete output from command python setup.py egg_info:
Running from numpy source directory.
/tmp/easy_install-ayEJIv/numpy-1.13.3/setup.py:367: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
run_build = parse_setuppy_commands()
/tmp/easy_install-ayEJIv/numpy-1.13.3/numpy/distutils/system_info.py:572: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info()
/tmp/easy_install-ayEJIv/numpy-1.13.3/numpy/distutils/system_info.py:572: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
self.calc_info()
/tmp/easy_install-ayEJIv/numpy-1.13.3/numpy/distutils/system_info.py:572: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
self.calc_info()
/bin/sh: svnversion : commande introuvable
/bin/sh: svnversion : commande introuvable
/tmp/easy_install-ayEJIv/numpy-1.13.3/numpy/distutils/system_info.py:572: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
self.calc_info()
/tmp/easy_install-ayEJIv/numpy-1.13.3/numpy/distutils/system_info.py:572: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
self.calc_info()
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
non-existing path in 'numpy/distutils': 'site.cfg'
Could not locate executable g77
Could not locate executable f77
Could not locate executable ifort
Could not locate executable ifl
Could not locate executable f90
Could not locate executable efl
Could not locate executable gfortran
Could not locate executable f95
Could not locate executable g95
don't know how to compile Fortran code on platform 'posix'
_configtest.c:1:5: attention : conflicting types for built-in function « exp »
int exp (void);
^~~
_configtest.c:1:20: erreur fatale : Python.h : No such file or directory
#include <Python.h>
^
compilation terminée.
_configtest.c:1:20: erreur fatale : Python.h : No such file or directory
#include <Python.h>
^
compilation terminée.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-2zSIir/scipy/setup.py", line 416, in <module>
setup_package()
File "/tmp/pip-build-2zSIir/scipy/setup.py", line 412, in setup_package
setup(**metadata)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 335, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 456, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 863, in resolve
replace_conflicting=replace_conflicting
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1141, in best_match
return self.obtain(req, installer)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1153, in obtain
return installer(requirement)
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 522, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 672, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 698, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 879, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1118, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1104, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 257, in run_setup
raise
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 170, in save_modules
saved_exc.resume()
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 145, in resume
six.reraise(type, exc, self._tb)
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 158, in save_modules
yield saved
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 254, in run_setup
_execfile(setup_script, ns)
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 49, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-ayEJIv/numpy-1.13.3/setup.py", line 392, in <module>
# higher up in this file.
File "/tmp/easy_install-ayEJIv/numpy-1.13.3/setup.py", line 384, in setup_package
if "--force" in sys.argv:
File "/tmp/easy_install-ayEJIv/numpy-1.13.3/numpy/distutils/core.py", line 169, in setup
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 160, in run
self.run_command("egg_info")
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/easy_install-ayEJIv/numpy-1.13.3/numpy/distutils/command/egg_info.py", line 26, in run
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/easy_install-ayEJIv/numpy-1.13.3/numpy/distutils/command/build_src.py", line 148, in run
File "/tmp/easy_install-ayEJIv/numpy-1.13.3/numpy/distutils/command/build_src.py", line 165, in build_sources
File "/tmp/easy_install-ayEJIv/numpy-1.13.3/numpy/distutils/command/build_src.py", line 324, in build_extension_sources
File "/tmp/easy_install-ayEJIv/numpy-1.13.3/numpy/distutils/command/build_src.py", line 377, in generate_sources
File "numpy/core/setup.py", line 421, in generate_config_h
File "numpy/core/setup.py", line 47, in check_types
Programming Language :: Python :: 3.2
File "numpy/core/setup.py", line 280, in check_types
test="""
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-2zSIir/scipy/