In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Download python install software from website http://www.aixtools.net/index.php/Packages
Ftp pyton install software "aixtools.python3.3.6.5.0.64bit.I" to path / tmp/pyinstall
Smit install
-> Install and Update Software
-> Install Software
-> INPUT device / directory for software
-> SOFTWARE to install: aixtools.python3
-> ACCEPT new license agreements? Yes
Press "ENTER" 2 times.
-bash-3.2# cd / opt/bin
-bash-3.2# ls-l
Total 19904
-rwxr-xr-x 1 bin bin 95 Jun 1 23:25 2to3
-rwxr-xr-x 1 bin bin 95 Jun 1 23:25 2to3-3.6
-rwxr-xr-x 1 bin bin 236 Jun 1 23:25 easy_install-3.6
-rwxr-xr-x 1 bin bin 93 Jun 1 23:25 idle3
-rwxr-xr-x 1 bin bin 93 Jun 1 23:25 idle3.6
-rwxr-xr-x 1 bin bin 208 Jun 1 23:25 pip3
-rwxr-xr-x 1 bin bin 208 Jun 1 23:25 pip3.6
-rwxr-xr-x 1 bin bin 78 Jun 1 23:25 pydoc3
-rwxr-xr-x 1 bin bin 78 Jun 1 23:25 pydoc3.6
-rwxr-xr-x 1 bin bin 5066438 Jun 1 23:22 python3
-rwxr-xr-x 1 bin bin 3037 Jun 1 23:25 python3-config
-rwxr-xr-x 1 bin bin 5066438 Jun 1 23:22 python3.6
-rwxr-xr-x 1 bin bin 3037 Jun 1 23:25 python3.6-config
-rwxr-xr-x 1 bin bin 3037 Jun 1 23:25 python3.6m-config
-rwxr-xr-x 1 bin bin 435 Jun 1 23:25 pyvenv
-rwxr-xr-x 1 bin bin 435 Jun 1 23:25 pyvenv-3.6
-bash-3.2# ln-sf / opt/bin/python3 / usr/bin/python
-bash-3.2# ls-l / usr/bin/python
Lrwxrwxrwx 1 root system 16 Oct 8 14:12 / usr/bin/python-> / opt/bin/python3
-bash-3.2#
-bash-3.2# pwd
/ opt/lib
-bash-3.2# ls-l
Total 8
Drwxr-xr-x 3 bin bin 4096 Oct 10 11:02 python3.6
-bash-3.2#
-bash-3.2# lslpp-l | grep-I python
Aixtools.python3.adt 3.6.5.0 COMMITTED python python3 ADT files
Aixtools.python3.man.en_US
3.6.5.0 COMMITTED python python3 man pages
Aixtools.python3.rte 3.6.5.0 COMMITTED python python3 01-Jun-2018
-bash-3.2# lslpp-h aixtools.python3.adt
Fileset Level Action Status Date Time
Path: / usr/lib/objrepos
Aixtools.python3.adt
3.6.5.0 COMMIT COMPLETE 10-08-18 14:10:11
-bash-3.2# lslpp-h aixtools.python3.rte
Fileset Level Action Status Date Time
Path: / usr/lib/objrepos
Aixtools.python3.rte
3.6.5.0 COMMIT COMPLETE 10-08-18 14:10:11
-bash-3.2# lslpp-h aixtools.python3.man.en_US
Fileset Level Action Status Date Time
Path: / usr/lib/objrepos
Aixtools.python3.man.en_US
3.6.5.0 COMMIT COMPLETE 10-08-18 14:10:11
-bash-3.2#
$python
Python 3.6.5 (default, Jun 1 2018, 16:50:58) [C] on aix6
Type "help", "copyright", "credits" or "license" for more information.
> > quit ()
$
Install the ibm_db package
Xlc is required to be installed
-bash-3.2# lslpp-l | grep-I xlc
XlC.adt.include 13.1.0.0 COMMITTED C Set + + Application
XlC.aix61.rte 13.1.3.1 COMMITTED IBM XL C++ Runtime for AIX 6.1
XlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
XlC.rte 13.1.3.1 COMMITTED IBM XL C++ Runtime for AIX
XlC.sup.aix50.rte 9.0.0.1 COMMITTED XL Citrus + Runtime for AIX 5.2
XlCcmp.13.1.0 13.1.0.0 COMMITTED XL C++ compiler
XlCcmp.13.1.0.bundle 13.1.0.0 COMMITTED XL C++ media defined bundles
XlCcmp.13.1.0.lib 13.1.0.0 COMMITTED XL C++ libraries
XlCcmp.13.1.0.license 13.1.0.0 COMMITTED XL C++ license files
XlCcmp.13.1.0.ndi 13.1.0.0 COMMITTED XL C++ non-default
XlCcmp.13.1.0.tools 13.1.0.0 COMMITTED XL C++ tools
Xlccmp.13.1.0 13.1.0.0 COMMITTED XL C compiler
Xlccmp.13.1.0.bundle 13.1.0.0 COMMITTED XL C media defined bundles
Xlccmp.13.1.0.lib 13.1.0.0 COMMITTED XL C libraries for AIX 6.1 and
Xlccmp.13.1.0.license 13.1.0.0 COMMITTED XL C license files
Xlccmp.13.1.0.ndi 13.1.0.0 COMMITTED XL C non-default installation
-bash-3.2#
Step 1:
Add in / etc/profile
If [- f / home/db2inst1/sqllib/db2profile]; then
. / home/db2inst1/sqllib/db2profile
Fi
...
Export PATH=/opt/IBM/xlc/13.1.0/bin/:$PATH
Step 2:
Cd / opt/bin
-bash-3.2# export OBJECT_MODE=64
-bash-3.2#. / pip3 install ibm_db
Collecting ibm_db
Using cached https://files.pythonhosted.org/packages/3f/61/389c6decacfed61c2724005b8c2be61f2c699f731b53af13517e5a0e6e98/ibm_db-2.0.9.tar.gz
Installing collected packages: ibm-db
Running setup.py install for ibm-db... Done
Successfully installed ibm-db-2.0.9
-bash-3.2#. / pip install ibm_db_sa
Collecting ibm_db_sa
Downloading https://files.pythonhosted.org/packages/97/7a/0b0fa69103683f51cf30a5d7ee75465c136cae17618b90d984709968915a/ibm_db_sa-0.3.4.tar.gz
Collecting sqlalchemy > = 0.7.3 (from ibm_db_sa)
Downloading https://files.pythonhosted.org/packages/25/c9/b0552098cee325425a61efdf380c51b5c721e459081c85bbb860f501c091/SQLAlchemy-1.2.12.tar.gz (5.6MB)
100% | # # | 5.6MB 1.5MB/s
Requirement already satisfied: ibm_db > = 2.0.0 in / opt/lib/python3.5/site-packages (from ibm_db_sa) (2.0.9)
Installing collected packages: sqlalchemy, ibm-db-sa
Running setup.py install for sqlalchemy... Done
Running setup.py install for ibm-db-sa... Done
Successfully installed ibm-db-sa-0.3.4 sqlalchemy-1.2.12
-bash-3.2#. / pip install ibm_db_django
Collecting ibm_db_django
Downloading https://files.pythonhosted.org/packages/cc/66/e0fabfc3f1e326b0a08ee866353e1d830bdff1d2b714475b3f320f728915/ibm_db_django-1.1.1.2.tar.gz
Requirement already satisfied: ibm_db > = 1.0.3 in / opt/lib/python3.5/site-packages (from ibm_db_django) (2.0.9)
Collecting django > = 1.0.3 (from ibm_db_django)
Using cached https://files.pythonhosted.org/packages/32/ab/22530cc1b2114e6067eece94a333d6c749fa1c56a009f0721e51c181ea53/Django-2.1.2-py3-none-any.whl
Collecting pytz (from django > = 1.0.3-> ibm_db_django)
Using cached https://files.pythonhosted.org/packages/30/4e/27c34b62430286c6d59177a0842ed90dc789ce5d1ed740887653b898779a/pytz-2018.5-py2.py3-none-any.whl
Installing collected packages: pytz, django, ibm-db-django
Running setup.py install for ibm-db-django... Done
Successfully installed django-2.1.2 ibm-db-django-1.1.1.2 pytz-2018.5
Step 3:
Check the installed package
-bash-3.2#. / pip list-- format=columns
Package Version
--
Django 2.1.2
Ibm-db 2.0.9
Ibm-db-django 1.1.1.2
Ibm-db-sa 0.3.4
Pip 18.1
Pytz 2018.5
Setuptools 20.10.1
SQLAlchemy 1.2.12
-bash-3.2#
Uninstall
Smitty > > Software Installation and Maintenance
> > software Maintenance and Utilities
> > Remove Installed Software
Note: PREVIEW only? (remove operation will NOT occur) set to no
ENTER
ENTER
DO!
Manually delete the installation directory
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.