Skip to content

Instantly share code, notes, and snippets.

@h-sao
Created April 12, 2017 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h-sao/5dfba32ce917e6e3089068098727c2aa to your computer and use it in GitHub Desktop.
Save h-sao/5dfba32ce917e6e3089068098727c2aa to your computer and use it in GitHub Desktop.
Install_log_on_Windows_for_Keras
# Error occured
(tensorflow) D:\dev\anaconda>pip install keras
Collecting keras
Downloading Keras-2.0.3.tar.gz (196kB)
100% |################################| 204kB 3.3MB/s
Collecting theano (from keras)
Downloading Theano-0.9.0.tar.gz (3.1MB)
100% |################################| 3.1MB 409kB/s
Collecting pyyaml (from keras)
Downloading PyYAML-3.12-cp35-cp35m-win_amd64.whl (195kB)
100% |################################| 204kB 1.4MB/s
Requirement already satisfied: six in c:\utils\anaconda3\envs\tensorflow\lib\site-packages (from keras)
Requirement already satisfied: numpy>=1.9.1 in c:\utils\anaconda3\envs\tensorflow\lib\site-packages (from theano->keras)
Collecting scipy>=0.14 (from theano->keras)
Downloading scipy-0.19.0.zip (15.3MB)
100% |################################| 15.3MB 85kB/s
Building wheels for collected packages: keras, theano, scipy
Running setup.py bdist_wheel for keras ... done
Stored in directory: C:\Users\xxx\AppData\Local\pip\Cache\wheels\93\72\65\4924fd6b1859343291c50774e2df36919ee61c4511dc6a9890
Running setup.py bdist_wheel for theano ... done
Stored in directory: C:\Users\xxx\AppData\Local\pip\Cache\wheels\d5\5b\93\433299b86e3e9b25f0f600e4e4ebf18e38eb7534ea518eba13
Running setup.py bdist_wheel for scipy ... error
Complete output from command C:\utils\Anaconda3\envs\tensorflow\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-build-1z5vyy9o\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\xxx\AppData\Local\Temp\tmppdwqbsvvpip-wheel- --python-tag cp35:
lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['C:\\utils\\Anaconda3\\envs\\tensorflow\\lib', 'C:\\', 'C:\\utils\\Anaconda3\\envs\\tensorflow\\libs']
NOT AVAILABLE
openblas_lapack_info:
libraries openblas not found in ['C:\\utils\\Anaconda3\\envs\\tensorflow\\lib', 'C:\\', 'C:\\utils\\Anaconda3\\envs\\tensorflow\\libs']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\system_info.py:1051: UserWarning: Specified path C:\projects\numpy-wheels\windows-wheel-builder\atlas-builds\atlas-3.11.38-sse2-64\lib is invalid.
pre_dirs = system_info.get_paths(self, section, key)
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\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()
lapack_info:
libraries lapack not found in ['C:\\utils\\Anaconda3\\envs\\tensorflow\\lib', 'C:\\', 'C:\\utils\\Anaconda3\\envs\\tensorflow\\libs']
NOT AVAILABLE
C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\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()
lapack_src_info:
NOT AVAILABLE
C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\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()
NOT AVAILABLE
Running from scipy source directory.
non-existing path in 'scipy\\integrate': 'quadpack.h'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\xxx\AppData\Local\Temp\pip-build-1z5vyy9o\scipy\setup.py", line 416, in <module>
setup_package()
File "C:\Users\xxx\AppData\Local\Temp\pip-build-1z5vyy9o\scipy\setup.py", line 412, in setup_package
setup(**metadata)
File "C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\core.py", line 135, in setup
config = configuration()
File "C:\Users\xxx\AppData\Local\Temp\pip-build-1z5vyy9o\scipy\setup.py", line 336, in configuration
config.add_subpackage('scipy')
File "C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\misc_util.py", line 1001, in add_subpackage
caller_level = 2)
File "C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\misc_util.py", line 970, in get_subpackage
caller_level = caller_level + 1)
File "C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\misc_util.py", line 907, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy\setup.py", line 15, in configuration
config.add_subpackage('linalg')
File "C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\misc_util.py", line 1001, in add_subpackage
caller_level = 2)
File "C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\misc_util.py", line 970, in get_subpackage
caller_level = caller_level + 1)
File "C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\misc_util.py", line 907, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy\linalg\setup.py", line 20, in configuration
raise NotFoundError('no lapack/blas resources found')
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
----------------------------------------
Failed building wheel for scipy
Running setup.py clean for scipy
Complete output from command C:\utils\Anaconda3\envs\tensorflow\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-build-1z5vyy9o\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all:
`setup.py clean` is not supported, use one of the following instead:
- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
files that aren't checked into the git repo)
Add `--force` to your command to use it anyway if you must (unsupported).
----------------------------------------
Failed cleaning build dir for scipy
Successfully built keras theano
Failed to build scipy
Installing collected packages: scipy, theano, pyyaml, keras
Running setup.py install for scipy ... error
Complete output from command C:\utils\Anaconda3\envs\tensorflow\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-build-1z5vyy9o\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\xxx\AppData\Local\Temp\pip-i2l8u_jg-record\install-record.txt --single-version-externally-managed --compile:
Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:
- `pip install .` (from a git repo or downloaded source
release)
- `pip install scipy` (last SciPy release on PyPI)
lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['C:\\utils\\Anaconda3\\envs\\tensorflow\\lib', 'C:\\', 'C:\\utils\\Anaconda3\\envs\\tensorflow\\libs']
NOT AVAILABLE
openblas_lapack_info:
libraries openblas not found in ['C:\\utils\\Anaconda3\\envs\\tensorflow\\lib', 'C:\\', 'C:\\utils\\Anaconda3\\envs\\tensorflow\\libs']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\system_info.py:1051: UserWarning: Specified path C:\projects\numpy-wheels\windows-wheel-builder\atlas-builds\atlas-3.11.38-sse2-64\lib is invalid.
pre_dirs = system_info.get_paths(self, section, key)
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\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()
lapack_info:
libraries lapack not found in ['C:\\utils\\Anaconda3\\envs\\tensorflow\\lib', 'C:\\', 'C:\\utils\\Anaconda3\\envs\\tensorflow\\libs']
NOT AVAILABLE
C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\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()
lapack_src_info:
NOT AVAILABLE
C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\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()
NOT AVAILABLE
Running from scipy source directory.
non-existing path in 'scipy\\integrate': 'quadpack.h'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\xxx\AppData\Local\Temp\pip-build-1z5vyy9o\scipy\setup.py", line 416, in <module>
setup_package()
File "C:\Users\xxx\AppData\Local\Temp\pip-build-1z5vyy9o\scipy\setup.py", line 412, in setup_package
setup(**metadata)
File "C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\core.py", line 135, in setup
config = configuration()
File "C:\Users\xxx\AppData\Local\Temp\pip-build-1z5vyy9o\scipy\setup.py", line 336, in configuration
config.add_subpackage('scipy')
File "C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\misc_util.py", line 1001, in add_subpackage
caller_level = 2)
File "C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\misc_util.py", line 970, in get_subpackage
caller_level = caller_level + 1)
File "C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\misc_util.py", line 907, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy\setup.py", line 15, in configuration
config.add_subpackage('linalg')
File "C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\misc_util.py", line 1001, in add_subpackage
caller_level = 2)
File "C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\misc_util.py", line 970, in get_subpackage
caller_level = caller_level + 1)
File "C:\utils\Anaconda3\envs\tensorflow\lib\site-packages\numpy\distutils\misc_util.py", line 907, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy\linalg\setup.py", line 20, in configuration
raise NotFoundError('no lapack/blas resources found')
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
----------------------------------------
Command "C:\utils\Anaconda3\envs\tensorflow\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-build-1z5vyy9o\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\xxx\AppData\Local\Temp\pip-i2l8u_jg-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\xxx\AppData\Local\Temp\pip-build-1z5vyy9o\scipy\
# check pip environment
(tensorflow) D:\dev\anaconda>pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
appdirs (1.4.3)
numpy (1.12.1)
packaging (16.8)
pip (9.0.1)
protobuf (3.2.0)
pyparsing (2.2.0)
setuptools (34.3.3)
six (1.10.0)
tensorflow-gpu (1.1.0rc1)
Werkzeug (0.12.1)
wheel (0.29.0)
# install scipy on conda
(tensorflow) D:\dev\anaconda>conda install scipy
Fetching package metadata .............
Solving package specifications: .
Package plan for installation in environment C:\utils\Anaconda3\envs\tensorflow:
The following NEW packages will be INSTALLED:
mkl: 2017.0.1-0
numpy: 1.12.1-py35_0
scipy: 0.19.0-np112py35_0
Proceed ([y]/n)? y
numpy-1.12.1-p 100% |###############################| Time: 0:00:00 11.26 MB/s
scipy-0.19.0-n 100% |###############################| Time: 0:00:01 10.33 MB/s
# install hdf5 on conda
(tensorflow) D:\dev\anaconda>conda install hdf5
Fetching package metadata .............
Solving package specifications: .
Package plan for installation in environment C:\utils\Anaconda3\envs\tensorflow:
The following NEW packages will be INSTALLED:
hdf5: 1.8.17-vc14_0 [vc14]
zlib: 1.2.8-vc14_3 [vc14]
Proceed ([y]/n)? y
hdf5-1.8.17-vc 100% |###############################| Time: 0:00:01 9.78 MB/s
# install h5py on conda
(tensorflow) D:\dev\anaconda>conda install h5py
Fetching package metadata .............
Solving package specifications: .
Package plan for installation in environment C:\utils\Anaconda3\envs\tensorflow:
The following NEW packages will be INSTALLED:
h5py: 2.7.0-np112py35_0
six: 1.10.0-py35_0
The following packages will be DOWNGRADED due to dependency conflicts:
hdf5: 1.8.17-vc14_0 [vc14] --> 1.8.15.1-vc14_4 [vc14]
Proceed ([y]/n)? y
six-1.10.0-py3 100% |###############################| Time: 0:00:00 524.95 kB/s
h5py-2.7.0-np1 100% |###############################| Time: 0:00:00 5.15 MB/s
# conda doesn't support keras
(tensorflow) D:\dev\anaconda>conda install keras
Fetching package metadata .............
PackageNotFoundError: Package missing in current win-64 channels:
- keras
# install keras on pip
(tensorflow) D:\dev\anaconda>pip install keras
Collecting keras
Requirement already satisfied: six in c:\utils\anaconda3\envs\tensorflow\lib\site-packages (from keras)
Collecting theano (from keras)
Collecting pyyaml (from keras)
Using cached PyYAML-3.12-cp35-cp35m-win_amd64.whl
Requirement already satisfied: numpy>=1.9.1 in c:\utils\anaconda3\envs\tensorflow\lib\site-packages (from theano->keras)
Requirement already satisfied: scipy>=0.14 in c:\utils\anaconda3\envs\tensorflow\lib\site-packages (from theano->keras)
Installing collected packages: theano, pyyaml, keras
Successfully installed keras-2.0.3 pyyaml-3.12 theano-0.9.0
(tensorflow) D:\dev\anaconda>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment