Hello Michael,
Thanks a lot for the help. I have installed python 3.6 using installp -d aixtools.python3.3.6.5.0.64bit.I -a all command. and python installed by default under /opt/bin (is it possible to change the default location ?) .
While installing ansible (Using pip3 install ansible) , it failed with below error. Please help me as I am unable to find what is this error all about?
soa@ztapp03:/opt/app # pip3 install ansible
Collecting ansible
Using cached
https://files.pythonhosted.org/packages/1b/5c/8a59aba5ca0d40df673aab53d51e9f5890a9c2135c299a909aed5fdee164/ansible-2.8.6.tar.gzCollecting jinja2
Using cached
https://files.pythonhosted.org/packages/65/e0/eb35e762802015cab1ccee04e8a277b03f1d8e53da3ec3106882ec42558b/Jinja2-2.10.3-py2.py3-none-any.whlCollecting PyYAML
Using cached
https://files.pythonhosted.org/packages/e3/e8/b3212641ee2718d556df0f23f78de8303f068fe29cdaa7a91018849582fe/PyYAML-5.1.2.tar.gzCollecting cryptography
Using cached
https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /opt/bin/python3.6 /opt/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-2zys6yt8/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i
https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"''
cwd: None
Complete output (67 lines):
Collecting setuptools>=40.6.0
Using cached
https://files.pythonhosted.org/packages/6a/9a/50fadfd53ec909e4399b67c74cc7f4e883488035cfcdb90b685758fa8b34/setuptools-41.4.0-py2.py3-none-any.whl Collecting wheel
Using cached
https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.whl Collecting cffi!=1.11.3,>=1.8
Using cached
https://files.pythonhosted.org/packages/0d/aa/c5ac2f337d9a10ee95d160d47beb8d9400e1b2a46bb94990a0409fe6d133/cffi-1.13.1.tar.gz Collecting pycparser
Using cached
https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz Installing collected packages: setuptools, wheel, pycparser, cffi
Running setup.py install for pycparser: started
Running setup.py install for pycparser: finished with status 'done'
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /opt/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rqg_5649/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rqg_5649/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-fj49ewuv/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-2zys6yt8/overlay --compile
cwd: /tmp/pip-install-rqg_5649/cffi/
Complete output (48 lines):
unable to execute 'xlc_r': No such file or directory
unable to execute 'xlc_r': No such file or directory
No working compiler found, or bogus compiler options passed to
the compiler from Python's standard "distutils" module. See
the error messages above. Likely, the problem is not related
to CFFI but generic to the setup.py of any Python package that
tries to compile C code. (Hints: on OS/X 10.8, for errors about
-mno-fused-madd see
http://stackoverflow.com/questions/22313407/ Otherwise, see
https://wiki.python.org/moin/CompLangPython or
the IRC channel #python on irc.freenode.net.)
Trying to continue anyway. If you are trying to install CFFI from
a build done in a different context, you can ignore this warning.
running install
running build
running build_py
creating build
creating build/lib.aix-7.1-3.6
creating build/lib.aix-7.1-3.6/cffi
copying cffi/__init__.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/api.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/backend_ctypes.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/cffi_opcode.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/commontypes.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/cparser.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/error.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/ffiplatform.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/lock.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/model.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/pkgconfig.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/recompiler.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/setuptools_ext.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/vengine_cpy.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/vengine_gen.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/verifier.py -> build/lib.aix-7.1-3.6/cffi
copying cffi/_cffi_include.h -> build/lib.aix-7.1-3.6/cffi
copying cffi/parse_c_type.h -> build/lib.aix-7.1-3.6/cffi
copying cffi/_embedding.h -> build/lib.aix-7.1-3.6/cffi
copying cffi/_cffi_errors.h -> build/lib.aix-7.1-3.6/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.aix-7.1-3.6
creating build/temp.aix-7.1-3.6/c
xlc_r -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -q64 -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -q64 -I/usr/include/ffi -I/usr/include/libffi -I/opt/include/python3.6m -c c/_cffi_backend.c -o build/temp.aix-7.1-3.6/c/_cffi_backend.o
unable to execute 'xlc_r': No such file or directory
error: command 'xlc_r' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rqg_5649/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rqg_5649/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-fj49ewuv/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-2zys6yt8/overlay --compile Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/bin/python3.6 /opt/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-2zys6yt8/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i
https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.
BR,
Brahma.T