Installing pip utility with INZA Python
This document describes the process of installing pip utility for INZA Python 2.7 64-bit language, provided as part of the IBM Netezza Analytics package.
Before you begin
Ensure that the following products are installed on system.
- IBM Netezza Analytics package of 11.0.x.
- OpenSSL version 1.0.2x
Note:
The defects for any Python third-party library are not addressed.
Vulnerabilities can only be fixed by the Python third party.
This procedure only provides a way of installing third-party libraries and is not supported by IBM.
Procedure
Example
The following is an example of pip execution.
/nz/export/ae/languages/python/2.7/spu64/bin/pip install camelcase
Collecting camelcase
Using cached https://files.pythonhosted.org/packages/24/54/6bc20bf371c1c78193e2e4179097a7b779e56f420d0da41222a3b7d87890/camelcase-0.2.tar.gz
Installing collected packages: camelcase
Running setup.py install for camelcase ... done
Successfully installed camelcase-0.2
You are using pip version 9.0.1, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
/nz/export/ae/languages/python/3.6/spu64/bin/pip3 install camelcase
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting camelcase
Using cached https://files.pythonhosted.org/packages/24/54/6bc20bf371c1c78193e2e4179097a7b779e56f420d0da41222a3b7d87890/camelcase-0.2.tar.gz
Installing collected packages: camelcase
Running setup.py install for camelcase ... done
Successfully installed camelcase-0.2
You are using pip version 9.0.1, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
What to do next
Find the following SSL library for python 2.7:
For version 3.x, the following file is to be copied in at:
- Host: /nz/export/ae/languages/python/3.6/host64/lib/python3.6/lib-dynload/
- SPU: /nz/export/ae/languages/python/3.6/spu64/lib/python3.6/lib-dynload/
Keep the file name as is, do not change it. Once done, run the following commands:
- Run /nz/export/ae/languages/python/3.6/host64/bin/python3.6 -c
import ssl - Run /nz/export/ae/languages/python/3.6/spu64/bin/python3.6 -c
import ssl