使用 INZAPython安装 pip 工具
本文档介绍为 INZAPython 2.764 位语言安装 pip 实用程序的过程,该程序作为IBM Netezza Analytics软件包的一部分提供。
准备工作
确保系统安装了以下产品。
- IBM Netezza Analytics软件包11.0.x。
- OpenSSL 1.0.2x版本
注:
不涉及任何Python第三方库的缺陷。
漏洞只能由Python第三方修复。
此程序仅提供一种安装第三方库的方法,不受IBM 支持。
程序
示例
下面是执行 pip 的示例。
/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.
下一步操作
为 python2.7:查找以下 SSL 库:
对于3.x 版,应在以下位置复制以下文件:
- 主机: /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/
保持文件名不变,不要更改。 完成后,运行以下命令:
- 运行 "/nz/export/ae/languages/python/3.6/host64/bin/python3.6 -c"
import ssl
- 运行 "/nz/export/ae/languages/python/3.6/spu64/bin/python3.6 -c"
import ssl