0% found this document useful (0 votes)
153 views4 pages

Install Python On AIX 7

Uploaded by

Juan Garcia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
153 views4 pages

Install Python On AIX 7

Uploaded by

Juan Garcia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

9/9/22, 5:05 PM Install python on AIX 7_ITPUB博客

首页
博客
专栏
学院
社区
技术栈 搜索  发博

首页 >
IT基础架构 >
服务器/存储 >
Install python on AIX 7

Install python on AIX 7


原创
服务器/存储
作者:zchbaby2000
时间:2018-10-08 17:21:32

 3146

 0

Download python install software from website


ftp pyton install software "aixtools.python3.3.6.5.0.64bit.I" to path /tmp/pyinstall

zchbaby2000

smit install

专家姓名:赵传华

->  Install and Update Software

喜欢各种数据库相关的开发,架构
和性能优化
->  Install Software

->  INPUT device / directory for software </tmp/pyinstall>

博文量 访
->  SOFTWARE to install: aixtools.python3

248 103
->  ACCEPT new license agreements? yes

Press "ENTER" 2 times.

最新文章

libmemcached编译问题
-bash-3.2# cd /opt/bin

DB2_CAPTURE_LOCKTIME
-bash-3.2# ls -l

total 19904

db2 锁分析 DB2_CAPTURE_

-rwxr-xr-x    1 bin      bin              95 Jun  1 23:25 2to3

DB2 Port (Network Security)


-rwxr-xr-x    1 bin      bin              95 Jun  1 23:25 2to3-3.6

Jenkins安装
-rwxr-xr-x    1 bin      bin             236 Jun  1 23:25 easy_install-3.6

搭建Ansible实验环境
-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

minishift 安装

-rwxr-xr-x    1 bin      bin             208 Jun  1 23:25 pip3

Kettle ETL第一次尝试
-rwxr-xr-x    1 bin      bin             208 Jun  1 23:25 pip3.6

fio 命令 测试IO性能
-rwxr-xr-x    1 bin      bin              78 Jun  1 23:25 pydoc3

查看Linux硬件的一些命令
-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#

blog.itpub.net/725820/viewspace-2215600/ 1/5
9/9/22, 5:05 PM Install python on AIX 7_ITPUB博客

-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()

安装ibm_db包

要求Xlc是安装好的

-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 C/C++ 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

blog.itpub.net/725820/viewspace-2215600/ 2/5
9/9/22, 5:05 PM Install python on AIX 7_ITPUB博客
  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:

在/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
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
Collecting sqlalchemy>=0.7.3 (from ibm_db_sa)

  Downloading (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
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
Collecting pytz (from django>=1.0.3->ibm_db_django)

  Using cached
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:

blog.itpub.net/725820/viewspace-2215600/ 3/5
9/9/22, 5:05 PM Install python on AIX 7_ITPUB博客
查看一下安装的包

-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

注意:PREVIEW only? (remove operation will NOT occur) 设置为no

ENTER

ENTER

DO!

手工删除安装目录

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/725820/viewspace-2215600/,如需转载,请注明出处,否则将追究法律责任。

 点赞 0  收藏 0 分享到:

上一篇:
db2 hadr_spool_limit 下一篇:
安装c, c++编译器 on AIX

请登录后发表评论
登录

全部评论

blog.itpub.net/725820/viewspace-2215600/ 4/5

You might also like