I am trying to use keras in the LXPLUS cluster for CERN users.
For that I am using a CMSSW release that already has python installed, just missing install keras... but...
$ python --version
Python 2.7...
$ pip install keras
You are using pip version 7.1.0, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting keras
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading Keras-2.0.1.tar.gz (192kB)
100% |################################| 192kB 847kB/s
Collecting theano (from keras)
Using cached Theano-0.8.2.tar.gz
Requirement already satisfied (use --upgrade to upgrade): pyyaml in /cvmfs/cms.cern.ch/slc6_amd64_gcc493/external/py2-PyYAML/3.11/lib/python2.7/site-packages (from keras)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.6/site-packages (from keras)
Collecting numpy>=1.7.1 (from theano->keras)
Using cached numpy-1.12.0.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/user_number/pip-build-7YA1PY/numpy/setup.py", line 34, in <module>
raise RuntimeError("Python version 2.7 or >= 3.4 required.")
RuntimeError: Python version 2.7 or >= 3.4 required.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/user_number/pip-build-7YA1PY/numpy
$ pip --version
pip 7.1.0 from /usr/lib/python2.6/site-packages (python 2.6)
I know there are many tutorials and solutions to these errors but none has been a clear or direct solution for my case.
PIP VERSION: How to change pip version 7.1.0 to 9.0.1? (In case it is useful for installing keras).
InsecurePlatformWarning
: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately (this does not help me solve it because the problem still appears...). Can you help me with this?raise RuntimeError
: Should I apparently use a CMSSW release with python version greater than 2.7?Python location: To install keras should i run python from what location?
$ which python
/usr/bin/python
or
/cvmfs/cms.cern.ch/slc6_amd64_gcc493/cms/cmssw/CMSSW_X_Y_Z/external/slc6_amd64_gcc493/bin/python (with "cmsenv")