Hi all,
I am working with centos version: 7.1.1503 (Core)
I am following the Python requirements to install all that's needed to have Caffe running.
As I go thru the list, trying to install h5py gets this exception:
pip install h5py
You are using pip version 7.1.0, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting h5py
Using cached h5py-2.5.0.tar.gz
Complete output from command python setup.py egg_info:
Download error on
https://pypi.python.org/simple/pkgconfig/: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol -- Some packages may not be found!
Couldn't find index page for 'pkgconfig' (maybe misspelled?)
Download error on
https://pypi.python.org/simple/: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol -- Some packages may not be found!
No local packages or download links found for pkgconfig
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-BbZj9W/h5py/setup.py", line 140, in <module>
cmdclass = CMDCLASS,
File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 265, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 289, in fetch_build_eggs
parse_requirements(requires), installer=self.fetch_build_egg
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 618, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 862, in best_match
return self.obtain(req, installer) # try and download/install
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 874, in obtain
return installer(requirement)
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 339, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 617, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pkgconfig')
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-BbZj9W/h5py
+++ Before suggesting how to resolve this, I tried the below +++
1. yum install pkgconfig - works, I see this assuring message: "Package 1:pkgconfig-0.27.1-4.el7.x86_64 already installed and latest version
Nothing to do"
2. yum install hdf5 - works, I see this when running this command: "Package hdf5-1.8.7-1.el6.rf.x86_64 already installed and latest version
Nothing to do"
Anyone tackled that issue before?
searching online, I didnt find any helpful tip to resolve that.
As I understand, In order to use Caffe, I must 1st install everything from the requirements.txt file.
If you can help, it would be great.
Thanks, Tomer